Menu

#10 html_entity_decode in setSegment() invalidated my document

open-works-for-me
nobody
None
5
2010-05-22
2010-05-22
Anonymous
No

i had a '&' in my odtphp template file (& in the content.xml) and after parcing, the document was unreadable.
the '&' was inside a segment. i changed the line 243 from

if (preg_match($reg, html_entity_decode($this->contentXml), $m) == 0) {
to
if (preg_match($reg, ($this->contentXml), $m) == 0) {

that seemed to have worked for me. just wanted to share ;-).
realy great work you guys did!!! saved me a bunch of work. keep it up, love windwerfer.

Discussion

  • Anonymous

    Anonymous - 2010-05-22
    • summary: html_entity_decode in setSegment invalidates document --> html_entity_decode in setSegment invalidated my document
     
  • Anonymous

    Anonymous - 2010-05-22
    • summary: html_entity_decode in setSegment invalidated my document --> html_entity_decode in setSegment() invalidated my document
     
  • Anonymous

    Anonymous - 2010-05-22
    • status: open --> open-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB