How do you convert Html to plain text

0 votes

I've got a table with HTML snippets in it. Just simple formatting, nothing more complicated like tags or entire pages.

On a specific page, I would like that HTML to be displayed as plain text alone with no styling (really, only the first 30 to 50 characters, but that's the simple part).

How do I insert that HTML's "text" as plain text into a string?

the following piece of code.

<b>Hello World.</b><br/><p><i>Is there anyone out there?</i><p>

Becomes:

hello World. Exists anyone outside?

Jul 26, 2022 in HTML by Tejashwini
• 3,820 points

edited 5 days ago 5 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP