Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Blows up when attribute has newlines #4

@jarmo

Description

@jarmo

When using a templating engine then sometimes element attributes will have newlines in them like this:

<div class="foo {{#ifSomething}} bar{{/ifSomething}}
  {{#ifSomethingElse}} baz{{/ifSomethingElse}}></div>

When using Mustache for example, then line-feed is preserved in the output with \n and giving html like this to dom2hscript will blow it up.

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