Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rich-text-to-html

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rich-text-to-html - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "rich-text-to-html",
"version": "1.0.1",
"version": "1.0.2",
"description": "return html string from contentful rich text fieild",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -87,20 +87,8 @@ # rich-text-to-html

}
},
{
nodeType: "paragraph",
content: [
{
nodeType: "text",
value: "custom text",
marks: [],
data: {}
}
],
data: {}
}
]
};
richTextToHtmlString(document); // -> <h2>Casino ads</h2><p>custom text</p><img alt="Banner" src="https://images.ctfassets.net/.../image.webp"><p>custom text</p>
richTextToHtmlString(document); // -> <h2>Casino ads</h2><p>custom text</p><img alt="Banner" src="https://images.ctfassets.net/.../image.webp">
```
<br>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc