Added links to wiki for EncodeHtmlEntities, EncodeUnicode and EncodeUrl
This commit is contained in:
parent
ea941d2200
commit
2297011feb
5 changed files with 14 additions and 23 deletions
|
@ -30,11 +30,8 @@ import rife.template.ValueRenderer;
|
|||
* {{v render:rife.render.EncodeHtmlEntities:valueId/}}
|
||||
* </pre>
|
||||
*
|
||||
* <p>For example {@code john@doe.com} would be encoded to:</p>
|
||||
*
|
||||
* <pre>&#106;&#111;&#104;&#110;&#64;&#100;&#111;&#101;&#46;&#99;&#111;&#109;</pre>
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
|
||||
* @see <a href="https://github.com/rife2/rife2-template-renderers/wiki/rife.render.EncodeHtmlEntities">rife.render.EncodeHtmlEntities</a>
|
||||
* @since 1.0
|
||||
*/
|
||||
public class EncodeHtmlEntities implements ValueRenderer {
|
||||
|
|
|
@ -32,6 +32,7 @@ import rife.tools.StringUtils;
|
|||
* </pre>
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
|
||||
* @see <a href="https://github.com/rife2/rife2-template-renderers/wiki/rife.render.EncodeUnicode">rife.render.EncodeUnicode</a>
|
||||
* @see StringUtils#encodeUnicode(String)
|
||||
* @since 1.0
|
||||
*/
|
||||
|
|
|
@ -32,6 +32,7 @@ import rife.tools.StringUtils;
|
|||
* </pre>
|
||||
*
|
||||
* @author <a href="https://erik.thauvin.net/">Erik C. Thauvin</a>
|
||||
* @see <a href="https://github.com/rife2/rife2-template-renderers/wiki/rife.render.EncodeUrl">rife.render.EncodeUrl</a>
|
||||
* @see StringUtils#encodeUrl(String)
|
||||
* @since 1.0
|
||||
*/
|
||||
|
|
|
@ -58,13 +58,6 @@ class TestEncode {
|
|||
assertThat(t.getContent()).isEqualTo("{\n \"foo\": \"This is a \\\"\\u2022test\\\"\"\n}");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testEncodeQp() {
|
||||
var t = TemplateFactory.TXT.get("encodeQp");
|
||||
t.setAttribute(TestCase.FOO, TestCase.SAMPLE_TEXT + "\nAnd one more test for =A0.");
|
||||
assertThat(t.getContent()).isEqualTo("This=20is=20a=20test=2E=0AAnd=20one=20more=20test=20for=20=3DA0=2E");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testEncodeRot13() {
|
||||
var t = TemplateFactory.TXT.get("rot13");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue