You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to this page - as an example - and copy the text at the top "Our mission is to organise the world’s information and make it universally accessible and useful." You need to copy it from the website itself.
Paste that text into the paragraph element.
What is the expected behavior?
When the page is published the text should be rendered.
What do you see instead?
A few important things to note:
The page renders OK in preview mode,
The paragraph is not rendered when the page is published. Reasons why below.
The copied text contains some HTML encoded tags which are not being sanitised at the time of pasting the content into PB. See in the Additional Information section how the text attribute contains an HTML encoded p tag, which breaks the rendering of the published page.
Additional information
"elements": [{
"id": "WCKfnhSUCi",
"type": "paragraph",
"data": {
"text": {
"desktop": {
"type": "paragraph",
"typography": "webiny-pb-typography-body",
"alignment": "left",
"tag": "p"
},
"data": {
"text": "\u003cp>Our mission is to organise the world’s information and make it universally accessible and useful.\u003c/p>"
}
},
"settings": {
"margin": {
"desktop": {
"all": "0px"
}
},
"padding": {
"desktop": {
"all": "0px"
}
}
}
},
"elements": [],
"path": ["aoOvCNMuES", "lHbpgj5NuK",
"sneNOpuOCI"
]
}],
"path": ["aoOvCNMuES", "lHbpgj5NuK", "sneNOpuOCI"]
Possible solution
Sanitise the text at the time of pasting into the element.
Another important note, this is not happening with the Heading element.
The text was updated successfully, but these errors were encountered:
Version
5.29.0
Operating System
macOS
Browser
Chrome
What are the steps to reproduce this bug?
What is the expected behavior?
When the page is published the text should be rendered.
What do you see instead?
A few important things to note:
The copied text contains some HTML encoded tags which are not being sanitised at the time of pasting the content into PB. See in the Additional Information section how the text attribute contains an HTML encoded p tag, which breaks the rendering of the published page.
Additional information
Possible solution
Sanitise the text at the time of pasting into the element.
Another important note, this is not happening with the Heading element.
The text was updated successfully, but these errors were encountered: