GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PPTX files are corrupted when XML special characters are used · Issue #22 · pythonicrubyist/powerpoint

PPTX files are corrupted when XML special characters are used #22

New issue
Copy link
New issue
Copy link
Open
Open
PPTX files are corrupted when XML special characters are used#22
Copy link

Description

@alemarmed
alemarmed
opened on May 8, 2019
Issue body actions

Hi, we are using this gem in a project and noticed that some .pptx files were corrupted, then I found that is because text is not XML escaped. Quick and easy steps to reproduce it:

require 'powerpoint'
@deck = Powerpoint::Presentation.new
@deck.add_textual_slide 'A&B', ['test']
@deck.save('test.pptx')

Of course there's an easy workaround: escape text before adding it to the slides. But I think that it should be fixed or included in the README.md as a known issue.

Activity

  1. ps1312 commented on Oct 3, 2019

    @ps1312
    ps1312
    on Oct 3, 2019
    More actions

    my two cents.

    use REMXL from ruby to escape text
    basically, REXML::Text.new('your string', false, nil, false)

    Reacted by Alejandro Martín Medina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.