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

getMessageSegmentInputs not working with "<p style="text-align: center;">Hello</p>" #33

Open
hemant3103 opened this issue Jan 28, 2022 · 0 comments

Comments

@hemant3103
Copy link

hemant3103 commented Jan 28, 2022

We are using the lightning-input-rich-text(LWC) and when user using text alignment center|right that time <p style="text-align: center;">Hello</p> HTML is generating.

Post we are passing <p style="text-align: center;">Hello</p> HTML as param(inputText) to getMessageSegmentInputs method, but this piece of code String textSegment = inputText.substring(strPos, globalMatcher.start()); returning invalid HTML, hence system throwing error.

Output of textSegment post executing code:
<p style="text-align: center;">Hello

Error:
Error while parsing Rich Text Content: The markup in the document following the root element must be well-formed.

Could you please help us to resolve this issue.

@amerine @mars @vazexqi @jamesward @edmorley

Thank you,
Hemant

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

No branches or pull requests

1 participant