Skip to content

Pears HTML input replaces special characters in Edit Post #30

Description

@terribold

I haven't done extensive testing on which special characters, but my case caused fairly serious issues. I'm creating a style guide and wanted to mark up pre and code outputs. The example output is:

<?php 
echo 'Hello World!';
?>

When I used this initially, the page treated the angle brackets as closing tags, which then caused everything below to act oddly. In the Pears HTML field, I replaced the angle brackets as follows:

&#60;?php 
echo 'Hello World!';
?&#62;

When I update the page, this fixes the page but the Pears HTML field replaces the entities with the characters they would render to, causing subsequent updates to be broken again. I don't know how many other special characters do would do this or how many of those would cause page issues after submission.

Activity

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