Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Dec 6, 2024
1 parent cfdd8a3 commit 6ea7e0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ Removes only the specified HTML tags. Keeps the content of the tags.
- Example: `"<p>Hello <b>world</b>!</p>"|remove_tags:"b"` returns `"<p>Hello world!</p>"`.
- Multiple tags: `{{contentHtml|remove_tags:("a,em,strong")}}`

### `replace_tags`

Replaces HTML tags, maintaining the content and attributes of the tag.

- `{{contentHtml|replace_tags:"strong":"h2"}}` replaces all `<strong>` tags with `<h2>`.

### `strip_attr`

Removes **all** HTML attributes from a string.
Expand Down

0 comments on commit 6ea7e0d

Please sign in to comment.