Documentation · ViewHelper reference

XSD schema file | vhs master

Format / TidyViewHelper

Tidy-processes a string (HTML source), applying proper indentation. /

  • Tag usage example

    <v:format.tidy content="NULL" encoding="'utf8'">
    	<!-- tag content - may be ignored! -->
    </v:format.tidy>
  • Inline usage example

    {v:format.tidy(content: 'NULL', encoding: ''utf8'')}

Arguments

Argument Description Type
content

Content to tidy

string
encoding

Encoding of string

string
Required attribute

Revision history

commit 649c6bdd09e86d39f21a26e48a677b02af210c77
Author: Claus Due <*****@wildside.dk>
Date:   Sun Nov 4 20:33:26 2012 +0100

    [FEATURE] Formatting Lipsum, Plaintext, Tidy and Trim ViewHelpers

commit bd148ea0000518f9be1800336b47e731b9aa5aeb
Author: Claus Due <*****@wildside.dk>
Date:   Mon Jan 7 17:48:37 2013 +0100

    [TASK] Change strategy in Format / Tidy to clean and repair

commit aa32ca2050a4ac2d8ff0a2183b316c7c0f2477ed
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:00:15 2013 +0200

    [TASK] A*****@throws annotations

commit db3cd7ddbffc430b6a108159cfc70dbe141e5410
Author: Claus Due <*****@namelesscoder.net>
Date:   Fri Sep 13 03:08:34 2013 +0200

    [TASK] Improve test suite

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file