Skip to content

fix: escape html entities in attr values #75

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

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

shreya-kamble
Copy link
Contributor

No description provided.

@shreya-kamble shreya-kamble requested a review from a team as a code owner January 21, 2025 11:52
uid: "45a850acbeb949db86afe415625ad1ce",
type: "social-embeds",
attrs: {
src: "null",
Copy link
Contributor

Choose a reason for hiding this comment

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

Here null is passed as a string. Can we check if is it expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @Jayesh2812 , that should be fine.
This test case was specific for verifying the title key, which is working as expected.

Also, in the case of null, it will work as expected
i.e: in case of string it will be validated through encodeURI and in case of just null , the attr will be removed

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds Great.

Copy link
Contributor

@Jayesh2812 Jayesh2812 left a comment

Choose a reason for hiding this comment

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

Looks Good to me.

@shreya-kamble shreya-kamble merged commit 500508f into development Jan 21, 2025
7 checks passed
@shreya-kamble shreya-kamble deleted the RT-360 branch January 21, 2025 12:18
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.

2 participants