Skip to content

Commit

Permalink
Update README.md for escaping html
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalniski authored Dec 10, 2021
1 parent 27e1188 commit 77da13a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ allprojects {
dependencies {
// …
implementation 'com.contentful.java:java-sdk:10.5.2'
implementation 'com.github.contentful.rich-text-renderer-java:html:1.1.0'
implementation 'com.github.contentful.rich-text-renderer-java:html:1.2.0'
}
```

Expand All @@ -47,7 +47,7 @@ same can be achieved by adding Maven dependencies like so:
<dependency>
<groupId>com.github.contentful.rich</groupId>
<artifactId>html</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

Expand Down Expand Up @@ -84,7 +84,7 @@ final HtmlContext context = new HtmlContext();
final String html = processor.process(context, node);
```

The `html` variable now contains the html representation of the node.
The `html` variable now contains the html representation of the node. Please bear in mind that rich text will be escaped in the output `html`.

Adding Custom Renderers
-----------------------
Expand Down

0 comments on commit 77da13a

Please sign in to comment.