#C13719. Remove HTML Tags
Remove HTML Tags
Remove HTML Tags
The task is to remove all HTML tags from a given string. You are provided with a string containing HTML content, and your program must output the plain text by stripping away all tags.
For example, if the input is <div>Hello, world!</div>
, the output should be Hello, world!
. Note that the string may include nested tags and self-closing tags.
The challenge is designed to test your string manipulation skills and understanding of text parsing.
inputFormat
Input Format: The input consists of a single line containing a string with HTML content. This string may include whitespace, nested tags, and self-closing tags.
outputFormat
Output Format: Output a single line containing the plain text after all HTML tags have been removed.
## sampleHello, world!
Hello, world!