Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed #20146: updated removed_tags example #969

Closed
wants to merge 1 commit into from

2 participants

@ferhatelmas

Implementation waits for a string but example was with list. Changed example according to implementation.

Example: remove_tags(value, ["b", "p"])
Implementation: remove_tags(value, "b p")

@claudep
Collaborator

Thanks, pushed in master and 1.5.x

@claudep claudep closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. @ferhatelmas
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/utils.txt
View
4 docs/ref/utils.txt
@@ -568,11 +568,11 @@ escaping HTML.
.. function:: remove_tags(value, tags)
- Removes a list of [X]HTML tag names from the output.
+ Removes a space separated list of [X]HTML tag names from the output.
For example::
- remove_tags(value, ["b", "span"])
+ remove_tags(value, "b span")
If ``value`` is ``"<b>Joel</b> <button>is</button> a <span>slug</span>"`` the
return value will be ``"Joel <button>is</button> a slug"``.
Something went wrong with that request. Please try again.