PWaddict Posted February 12, 2024 Posted February 12, 2024 Hello! If the editor accidentally don't make a whole word as bold and do something like this: "Lorem" and then make the "Lo" letters bold too "Lorem" (<strong>Lo</strong><strong>rem</strong>) on the site using $sanitizer->truncate() for a summary, that word will be displayed as 2 words like this: "Lo rem". Any idea how to fix this?
netcarver Posted February 12, 2024 Posted February 12, 2024 I'm not sure of the context of your call to truncate(), but perhaps you could run the sanitizer on the output of strip_tags()? 2 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now