Skip to content

AddHTML & or & breaks #514

Closed
Closed
@klompenrunner

Description

@klompenrunner

Taken from: Sample_26_Html.php

The sample works:
'<p>Some well formed HTML snippet needs to be used<p>';

Bad HTML like this as expected breaks the XML:
'<p>Some well formed HTML snippet needs & to be used<p>';

When I add an HTML ampersand it breaks the XML too:
'<p>Some well formed HTML snippet needs &amp; to be used<p>';

But double escaping the ampersand makes it work.
'<p>Some well formed HTML snippet needs &amp;amp; to be used<p>';

Tested with -master and -developer today.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions