Closed adilmarjunior closed 2 years ago
The parser module we depend on doesn't tell us what was used originally, it just gives us the structure, so it wouldn't be practical.
Hmm. Although we can't tell how it was previously quoted, I was hasty in closing this because we could handle some way of giving a hint of how it should be quoted, and then you could make that decision yourself based on attribute names, etc. A PR for that would be a good idea if you are interested in pursuing it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Question or comment
I'm trying to prevent a property that uses single quotes from being replaced with double quotes.
My example: Original content:
<join-iframe story-info='{"url":"{MY_URL}"}' ></join-iframe>
Content after sanitize:
<join-iframe story-info="{"url":"{MY_URL}"}"></join-iframe>
I would like to keep single quotes instead of double quotes in the story-info property. Like:
story-info='{content}'
insteadstory-info="{content}"
I already tried: TextFilter:
TransformTags:
There's a way to do it? Thanks in advance.