Very briefly: Every template (page or component) has a model class. If nothing 
is defined specifically in the template definition, the default component or 
page template model classes are being used. You should now create your own 
model class and configure your template to use it (add a "modelClass" attribute 
and set it to the your model class full name). Now you can add a "public String 
getPlainText()" method in the model class which does all the work by using the 
HtmlToPlainText class. In your template you can call this method simply with 
${model.plainText}.

Hope this helps you to get started!

-will

On 25.04.2014, at 10:40, "Mario Ammann (via Magnolia Forums)" 
<[email protected]> wrote:

> Hi will
> 
> Thank your for your input. I just found a class "HtmlToPlainText" in mgnl, 
> wich seems to replace Html-Code. Do you have an idea, how to call this 
> function in FTL? Sorry, I'm a beginner.
> 
> Mario
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=6deeefc9-228e-4b3e-8696-c629f58259df
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to