Skip to content

[feat]: Ignore non-HTML tag #26

@oantoro

Description

@oantoro

In my use case, I have an HTML file which contains an EJS tag.
The current behavior of the API assume that everything started with < and closed with > is a tag. The problem is whenever we try to parse EJS tag, the library treat it as a tag. So, for example <%=title %>, the output will produce:

{
"tag":"'%=title"
...
}

Whenever we try to render back to HTML, the result will be something like <%=title></%=title>.
Is there any option to ignore certain tags?
Thank you

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions