JsRender Demos

Using {{: }} or {{> }} to render data values with optional conversion or HTML encoding


Note: A common use for converters is to protect against injection attacks from untrusted data.
It is generally best to use {{> }} when rendering data within element content, if the data is not intended to provide markup for insertion in the DOM.
In the context of HTML attributes, other encoders can easily be registered, such as an attribute encoder, {{attr: }}.
Title (loc:French)No ConvertHTML Encode