textformat function

textformat function

Form attributes:

微信图片_20180313125004.png

This function mainly cleans spaces and special characters, and formats paragraphs such as line breaks and line indentation according to word boundaries.

Users can set each parameter explicitly, or use a preprocessing style. Currently the only available style is "email".

eg:

{textformat wrap=40}

This is foo .
This is foo.
This is foo.
This is foo.
This is foo.
This is foo.

This is bar.

bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.

{/textformat}

Output:
This is foo. This is foo. This is foo.
This is foo. This is foo. This is foo.

This is bar.

bar foo bar foo foo. bar foo bar foo
foo. bar foo bar foo foo. bar foo bar
foo foo. bar foo bar foo foo. bar foo
bar foo foo. bar foo bar foo foo.

Continuing Learning
||
<?php echo "textformat函数";
submitReset Code