forcedotcom / forcedotcom/ConnectApiHelper
getMessageSegmentInputs not working with "<p style="text-align: center;">Hello</p>"
Open
- Dominant language
- Apex
- Stars
- 105
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
We are using the lightning-input-rich-text(LWC) and when user using text alignment center|right that time `
Hello
` HTML is generating.Post we are passing `
Hello
` 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:
`
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.