-
Notifications
You must be signed in to change notification settings - Fork 57
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
The HTML within a paragraph gets converted into a translation string on theme save #573
Comments
Oh, great example! Thanks for logging. Yes, I can see how this could be improved to ensure that it's only the content of elements (and not the entire nested elements) that need to be escaped. |
It looks like |
I have a paragraph with links and while saving translation it escapes and presents me the anchor markup within a paragraph. Is there any way we can escape that translation with comments? |
I've just experienced this with the theme I'm working on now. It'd be great if the issue gets resolved soon. I appreciate any help you can provide. |
@mikachan, Could anyone from the team please look into this issue? We have to fix it manually every time we save the theme.
|
Thanks for the ping, @iamtakashi. We have a potential fix in #719, although finding a good solution is difficult. However, I'm hoping we'll be able to merge that PR soon. |
Thanks for your response, @mikachan. The PR makes me feel a little relieved. I, too, hope that fixes the issue! It has been a headache for themers for a while. |
I ended up with:
while the more desirable would be:
I am aware it may be difficult to implement, but I'm just reporting the situations when I was forced to edit the generated template or pattern manually to make it deliverable.
I'm not even sure that every paragraph should be converted into a translation, but I have no idea how we could distinguish between the ones we want and the ones we don't.
The text was updated successfully, but these errors were encountered: