The <rt> tag is used in HTML ruby annotations to display the pronunciation or explanation of characters, often in languages such as Japanese and Chinese. For example, it can show pronunciation above or beside a word. An <rt> element may have attributes such as class, id, or style, but sometimes you may need to remove those attributes while keeping the tag and its content intact.
<rt> Tag Attributes Remover
This <rt> Tag Attributes Remover is a simple browser-based tool for that task. Paste your HTML into the input box and click Remove attributes. The tool will remove attributes from opening <rt> tags and place the cleaned HTML in the output box. Text, other HTML elements, and the contents within each <rt> tag are preserved.
For example, this input:
<ruby>
漢 <rt class="pronunciation" style="color: red;">かん</rt>
</ruby>
becomes:
<ruby>
漢 <rt>かん</rt>
</ruby>
The tool is useful when you are cleaning copied HTML, preparing markup for a content management system, standardizing ruby annotations, or removing unwanted formatting. It only targets opening <rt> tags. Attributes on other tags such as <ruby> or <rp>—are not changed.
How to use the tool?
- Copy the HTML you want to clean.
- Paste it into the Input HTML box.
- Click Remove attributes.
- Copy the cleaned result from the Output box.
The remover uses a case-insensitive match, so it also recognizes tags written as <RT> or <Rt>. It works directly in your browser, and the provided code does not send your text to a server.