Skip to content

Commit a6b1fe5

Browse files
committed
Update README.md
1 parent 4f433ac commit a6b1fe5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,12 @@ require 'contentstack'
8686
Contentstack.render_content(@entry.rte_field_uid, ContentstackUtils::Model::Option.new(@entry))
8787
end
8888
```
89+
### GQL Json RTE to HTML
90+
To parse JSON RTE content from GQL response to HTML content use `ContentstackUtils::GQL.json_to_html` function as below:
91+
92+
```ruby
93+
require 'contentstack_utils'
94+
95+
result = ContentstackUtils::GQL.json_to_html(entry['single_rte'], ContentstackUtils::Model::Options.new())
96+
97+
```

0 commit comments

Comments
 (0)