HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Multiple TextFormatters, Vanilla One wins
@Mark There is problem: Impossible format text with more than one method. In Vanilla 1 we can do that by adding Formatter to StringManipulator class. Vanilla 2 (what we can do): Gdn_Format::Format() is static, not pluggable (PHP < 5.3). 1. Edit views solution$Text = Gdn_Format::Html($Text); $Text = Gdn_Format::To($Text,… -
Re: Multiple TextFormatters, Vanilla One wins
If you want to plug into the formatter using 'MyMethod' in your example above you would do the following: 1. Make a class with a method called Format($Text). 2. Install the class with the following line of code: Gdn::FactoryInstall('MyMethodFormatter', 'MyMethodClass', 'PathToClass', Gdn::FactorySingleton); Check out the…
2 results