Fix formatting in highlight docs

Right now, the `\1` in the plain text gets escaped to just "1" in the rendered docs.  Wrap it in `tt` tags to keep the \ there as intended.

[ci skip]
This commit is contained in:
T.J. Schuck 2021-02-11 16:48:45 -05:00
parent 9eedc375d9
commit c80df59b25
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ module ActionView
# Highlights one or more +phrases+ everywhere in +text+ by inserting it into
# a <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt>
# as a single-quoted string with <tt>\1</tt> where the phrase is to be inserted (defaults to
# '<mark>\1</mark>') or passing a block that receives each matched term. By default +text+
# <tt><mark>\1</mark></tt>) or passing a block that receives each matched term. By default +text+
# is sanitized to prevent possible XSS attacks. If the input is trustworthy, passing false
# for <tt>:sanitize</tt> will turn sanitizing off.
#