HTML Obfuscator
A Visual Studio Code extension that obfuscates the text content of HTML files with Lorem Ipsum text, while preserving the structure and tags.
Features
- Obfuscates text content within HTML elements, such as paragraphs, headings, list items, and more.
- Preserves the structure and tags of the HTML document.
- Provides a simple command to obfuscate the text in the active HTML file.
Manual Installation
Open Visual Studio Code.
Click the Extensions view icon on the Sidebar, or use the Ctrl+Shift+X
or Cmd+Shift+X
keyboard shortcut to open the Extensions view.
Click the "More Actions" button (the three-dot menu) in the upper right corner of the Extensions view. 4. Choose "Install from VSIX..." from the context menu.
In the file picker dialog that opens, select the .vsix file you just created and click the Install
button.
Usage
- Open an HTML file in Visual Studio Code.
- Press
Ctrl+Shift+P
or Cmd+Shift+P
to open the Command Palette.
- Type "Obfuscate HTML" in the Command Palette and press
Enter
.
The text content within the HTML elements will be replaced with Lorem Ipsum text, and a new window with the obfuscated will open.
If there is a selection only that piece of HTML will be replaced with Lorem Ipsum text.
Extension Settings
This extension the following setting:
htmlContentObfuscator.respectPunctuation
: Enable/disable respecting punctuation marks (hyphens, colons, etc.) in the original text when obfuscating. Default is true
.
htmlContentObfuscator.excludedTags
: List of HTML tags to exclude from obfuscation. Default is ["script", "style"]
.
Example
Original HTML content:
<h1>Hello, world!</h1>
<p>This is a sample paragraph with some text that will be obfuscated.</p>
Obfuscated HTML content:
<h1>Lorem Ipsum</h1>
<p>
Dolor sit amet, consctetur adipscing elit. Pelletesque nec lorem tincidunt.
</p>
Obfuscated HTML content with respectPunctuation
enabled:
<h1>Cillu, commo!</h1>
<p>Eu si i aliqui do mini qui quis est sunt co exercitati.</p>
1.0.6
- Added categories and keywords
1.0.5
- Added support for respecting punctuation marks
- Added support for excluding HTML tags from obfuscation
- Bug fixes