Skip to content

Inconsistent Text Escaping #470

Closed
Closed
@lrobert

Description

@lrobert

I noticed after release 0.12.0 that my documents no longer open because there is inconsistent escaping. The erorr I get is the same as Issue #401. However I noticed that the ListItem element ListItem.php#L60 adds text this way:

$this->textObject = new Text(String::toUTF8($text), $fontStyle, $paragraphStyle);

whereas the text element doesn't escape anything. Shouldn't this be left up to the user to handle escaping in all cases?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions