The <rp> Tag Attributes Remover is a simple tool that removes attributes from opening <rp> tags in HTML code. It can help clean up markup when you need every opening <rp> tag to appear as just <rp>, without changing the rest of your text.
<rp> Tag Attributes Remover
What does the tool do?
An <rp> tag is commonly used with <ruby> and <rt> elements to provide fallback punctuation for browsers that do not support ruby annotations.
For example:
<ruby> hello <rp class="fallback">(</rp><rt>kkk</rt><rp>)</rp> </ruby>
After using the remover, the opening <rp> tags become:
<ruby> hello <rp><rt>kkk</rt><rp></rp> </ruby>
The tool removes attributes such as class, id, and style from opening <rp> tags. It does not remove attributes from other HTML elements.
How to use it?
- Copy the HTML you want to clean.
- Paste it into the Input HTML box.
- Click Remove attributes.
- Review the cleaned HTML in the Output box.
- Copy the output and use it wherever you need.
The tool works directly in your browser. Your pasted text is processed by the page’s JavaScript and is not sent to a server by this code.
Example
Input:
<p>
<ruby>hello<rp class="note">(</rp><rt>kkk</rt><rp class="note">)</rp></ruby> </p>
Output:
<p> <ruby>hello<rp><rt>kkk</rt><rp></rp></ruby> </p>
What remains unchanged?
Only opening <rp> tags are targeted. All other tags, attributes, text, and spacing are left as they are. Closing tags such as </rp> are not changed. If an <rp> tag has no attributes, it remains <rp>.
The tool uses a case-insensitive match, so it also handles tags written with uppercase or mixed-case letters, such as <RP class="note">.