Remove Inline Styles

🌐Community
by manuelvillarvieites · vlatest · Repository

Removes all inline styles from selected text, streamlining formatting and ensuring clean output for various applications.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add remove-inline-styles npx -- -y @trustedskills/remove-inline-styles
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "remove-inline-styles": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/remove-inline-styles"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill removes inline styles from HTML. It identifies and strips out style attributes directly embedded within HTML tags, leaving only external or internal CSS to control the styling of elements. This is useful for cleaning up messy HTML code or preparing content for further processing where inline styles are undesirable.

When to use it

  • Cleaning up scraped data: Web scraping often results in HTML with excessive inline styles that need to be removed before analysis or storage.
  • Preparing content for a headless CMS: Many headless CMS systems don't support inline styling, so this skill can pre-process content before importing.
  • Simplifying email templates: Removing inline styles from email templates can make them easier to maintain and debug.
  • Standardizing HTML output: Ensure consistent styling by removing direct style definitions within the HTML markup itself.

Key capabilities

  • Removes all style attributes from HTML elements.
  • Operates on raw HTML strings or files.
  • Integrates with n8n workflows.

Example prompts

  • "Remove inline styles from this HTML: <p style="color: red;">This is a paragraph.</p>"
  • "Clean the inline styling in my_html_file.txt."
  • "Strip all inline styles before sending the HTML to the next step in my workflow."

Tips & gotchas

  • The skill requires access to the HTML content you want to process, either as a string or file path.
  • Be aware that removing inline styles will likely change the visual appearance of your content if external CSS isn't defined to replace them.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
manuelvillarvieites
Installs
2

🌐 Community

Passed automated security scans.