Skip to tool

C++ Strip tags Online

Remove HTML/XML tags from input.

The output updates as you type. The tool processes input in your browser.

Worked example

Tag removal is useful for plain-text extraction. Use an HTML sanitizer before rendering untrusted markup.

Allowed tags
""
Sample input
<b>Hello</b> <i>world</i>
Sample output
Hello world

Using this operation in C++

The interactive result uses JavaScript. std::string operates on char elements. With UTF-8 data, byte offsets and decoded character positions can differ.

C++ reference