According to the provided technical document, the “Code cleaning service from unnecessary html tags” was developed on the WordPress cms.
For website layout, the following tools were used:
- HTML, BEM
- CSS/SCSS, CSS grid, CSS Flexbox
- JavaScript/js-beautify/DOMPurify
- Adaptability for all devices
- Principles of SEO optimization
- Cross-browser compatibility for all popular platforms
Description of the service
This service is designed for fast and safe cleaning of HTML code that is added when inserting text from external sources (Word, Google Docs, websites).
The service works in two modes:
- produces the result in text format (without HTML tags):
- HTML format — cleaned and saved according to specified conditions.
HTML tags included in the service:
- paragraphs <p>
- lists <ul>, <ol>
- headlines <h1> — <h6>
- <img> image with center alignment support
- tables <table>
- text selection: <b>, <strong>, <em>
- link <a>
Automatic removal:
- unnecessary tags and styles (e.g. from Word, Google Docs, CMS)
- inline styles, classes, unnecessary attributes
- double spaces and empty lines
This tool will be useful to everyone who publishes content on websites, works with e-mail templates, or prepares HTML code for CMS.