@@ -438,63 +438,64 @@ Provided Filters
438438The following filters are available when using the parser:
439439
440440================ ================= =========================================================== ======================================
441- Filter Arguments Description Example
441+ Filter Arguments Description Example
442442================ ================= =========================================================== ======================================
443- abs Displays the absolute value of a number. { v|abs }
443+ abs Displays the absolute value of a number. `` { v|abs } ``
444444
445- capitalize Displays the string in sentence case: all lowercase { v|capitalize}
445+ capitalize Displays the string in sentence case: all lowercase `` { v|capitalize}``
446446 with firstletter capitalized.
447447
448- date format (Y-m-d) A PHP **date**-compatible formatting string. { v|date(Y-m-d) }
448+ date format (Y-m-d) A PHP **date**-compatible formatting string. `` { v|date(Y-m-d) }``
449449
450- date_modify value to add A **strtotime ** compatible string to modify the date, { v|date_modify(+1 day) }
451- / subtract like ``+5 day `` or ``-1 week ``.
450+ date_modify value to add A **strtotime ** compatible string to modify the date, `` { v|date_modify(+1 day) } ``
451+ / subtract like ``+5 day `` or ``-1 week ``.
452452
453- default default value Displays the default value if the variable is `empty() `_. { v|default(just in case) }
453+ default default value Displays the default value if the variable is `empty() `_. `` { v|default(just in case) } ``
454454
455- esc html, attr, Specifies the context to escape the data. { v|esc(attr) }
456- css, js
455+ esc html, attr, Specifies the context to escape the data. `` { v|esc(attr) } ``
456+ css, js
457457
458- excerpt phrase, radius Returns the text within a radius of words from a given { v|excerpt(green giant, 20) }
458+ excerpt phrase, radius Returns the text within a radius of words from a given `` { v|excerpt(green giant, 20) } ``
459459 phrase. Same as **excerpt ** helper function.
460460
461- highlight phrase Highlights a given phrase within the text using { v|highlight(view parser) }
462- ' <mark></mark>' tags.
461+ highlight phrase Highlights a given phrase within the text using `` { v|highlight(view parser) } ``
462+ `` <mark></mark> `` tags.
463463
464- highlight_code Highlights code samples with HTML/CSS. { v|highlight_code }
464+ highlight_code Highlights code samples with HTML/CSS. `` { v|highlight_code } ``
465465
466- limit_chars limit Limits the number of characters to $limit. { v|limit_chars(100) }
466+ limit_chars limit Limits the number of characters to $limit. `` { v|limit_chars(100) } ``
467467
468- limit_words limit Limits the number of words to $limit. { v|limit_words(20) }
468+ limit_words limit Limits the number of words to $limit. `` { v|limit_words(20) } ``
469469
470- local_currency currency, Displays a localized version of a currency. "currency" { v|local_currency(EUR,en_US) }
471- locale, valueis any 3-letter ISO 4217 currency code.
472- fraction
470+ local_currency currency, Displays a localized version of a currency. "currency" `` { v|local_currency(EUR,en_US) } ``
471+ locale, valueis any 3-letter ISO 4217 currency code.
472+ fraction
473473
474- local_number type, precision, Displays a localized version of a number. "type" can be { v|local_number(decimal,2,en_US) }
475- locale one of: decimal, currency, percent, scientific, spellout,
474+ local_number type, precision, Displays a localized version of a number. "type" can be `` { v|local_number(decimal,2,en_US) } ``
475+ locale one of: decimal, currency, percent, scientific, spellout,
476476 ordinal, duration.
477477
478- lower Converts a string to lowercase. { v|lower }
478+ lower Converts a string to lowercase. `` { v|lower } ``
479479
480- nl2br Replaces all newline characters (\n ) to an HTML <br/> tag. { v|nl2br }
480+ nl2br Replaces all newline characters (``\n ``) to an HTML ``{ v|nl2br } ``
481+ ``<br/> `` tag.
481482
482- number_format places Wraps PHP **number_format ** function for use within the { v|number_format(3) }
483+ number_format places Wraps PHP **number_format ** function for use within the `` { v|number_format(3) } ``
483484 parser.
484485
485- prose Takes a body of text and uses the **auto_typography() ** { v|prose }
486+ prose Takes a body of text and uses the **auto_typography() ** `` { v|prose } ``
486487 method to turn it into prettier, easier-to-read, prose.
487488
488- round places, type Rounds a number to the specified places. Types of **ceil ** { v|round(3) } { v|round(ceil) }
489+ round places, type Rounds a number to the specified places. Types of **ceil ** `` { v|round(3) } `` `` { v|round(ceil) } ``
489490 and **floor ** can be passed to use those functions instead.
490491
491- strip_tags allowed chars Wraps PHP **strip_tags **. Can accept a string of allowed { v|strip_tags(<br>) }
492+ strip_tags allowed chars Wraps PHP **strip_tags **. Can accept a string of allowed `` { v|strip_tags(<br>) } ``
492493 tags.
493494
494- title Displays a "title case" version of the string, with all { v|title }
495+ title Displays a "title case" version of the string, with all `` { v|title } ``
495496 lowercase, and each word capitalized.
496497
497- upper Displays the string in all uppercase. { v|upper }
498+ upper Displays the string in all uppercase. `` { v|upper } ``
498499================ ================= =========================================================== ======================================
499500
500501.. _empty(): https://www.php.net/manual/en/function.empty.php
0 commit comments