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

Update HTML creating functions to preserve reserved characters #22

Open
allenbaron opened this issue Jun 14, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@allenbaron
Copy link
Collaborator

HTML reserved characters are listed at https://www.html.am/reference/html-special-characters.cfm and should be converted to proper HTML when updating resources on the Use Cases page or creating other html text.

Not sure how the " and ' are handled by babel. Need to look into this.

@allenbaron allenbaron added the bug Something isn't working label Jun 14, 2024
@allenbaron
Copy link
Collaborator Author

The reserved characters may be a more limited set (see https://stackoverflow.com/a/10371699/6938922), so using HTML for the " and ' may not matter for HTML. The " will matter inside of text marked for translation with babel (because " must be escaped in those cases).

Right now, I don't think DO.utils generates any text that ends up being translated by babel, so implementing conversion of " is likely not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant