Skip to content

Auto-escaping HTML end tags in CDATA blocks #39

@dernelson

Description

@dernelson

PHPTAL currently escapes HTML end tags within CDATA blocks, making it impractical to pass through embedded client-side templates:

<script type="text/x-template">/*<![CDATA[*/
    <p>Hello World</p>
/*]]>*/</script>

After executing the PHPTAL template containing this markup, PHPTAL converts the </p> into <\/p>, which botches the markup, and the client-side template fails to render properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions