Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape HTML by default in list_tag #4743

Merged
merged 1 commit into from
Jul 25, 2021
Merged

Conversation

tomap
Copy link
Contributor

@tomap tomap commented Jul 21, 2021

escape the HTML in Tag values. It should be text, not HTML

This is a breaking change as some people might have been relying on this use case (having html in tags)
and documentation should be updated to explain that when using function transform, value should be escaped if needed

ecape the Tag values. It should be text, not HTML
This is a breaking change and documentation should be updated to explain that when using function transform, value should be escaped if needed
@coveralls
Copy link

coveralls commented Jul 21, 2021

Coverage Status

Coverage increased (+0.03%) to 98.309% when pulling 5170df2 on tomap:fix/escapeListTags into 9e3360a on hexojs:master.

@tomap
Copy link
Contributor Author

tomap commented Jul 21, 2021

I don't know the plans for Hexo 6, but if we follow semver, we should publish this fix in Hexo 6

{source: 'foo', slug: 'foo'}
]);

// TODO: Warehouse needs to add a mutex lock when writing data to avoid data sync problem
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #4430

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied this part from the tests above. Not sure how to fix it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just add that comment to add a link back to the already opened issue (for later fix). The current workaround already looks good for this PR.

@SukkaW SukkaW merged commit 042f862 into hexojs:master Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants