Package rife.render

Class EncodeHtmlEntities

java.lang.Object
rife.render.EncodeHtmlEntities
All Implemented Interfaces:
ValueRenderer

public class EncodeHtmlEntities extends Object implements ValueRenderer

Encodes a template value to HTML decimal entities

Usage:

   <!--v render:rife.render.EncodeHtmlEntities:valueId/-->
   {{v render:rife.render.EncodeHtmlEntities:valueId/}}
 
Since:
1.0
Author:
Erik C. Thauvin
See Also:
  • Constructor Details

    • EncodeHtmlEntities

      public EncodeHtmlEntities()
  • Method Details

    • render

      public String render(Template template, String valueId, String differentiator)
      Returns the template value encoded to HTML decimal entities.
      Specified by:
      render in interface ValueRenderer
      Parameters:
      template - the template instance
      valueId - the value id
      differentiator - the differentiator
      Returns:
      the encoded value