tm-content-parser
v1.0.24
Published
Trinity Mirror Content Type Parser
Downloads
8
Maintainers
Keywords
Readme
tm-content-parser
This module provides a universal content parser. It only exposes one parse
function.
Usage
const contentParser = requrire('tm-content-parser');
contentParser(config, xhtml, content);
Example Config
{
"contentType":{
"types":[
"news",
"opinion",
"picture",
"youtubeVideo",
"brightcoveVideo",
"gallery",
"quiz",
"html"
],
"disallowedEmbedTypes":[
"live-event",
"news",
"opinion"
]
}
}
Release Log
1.0.11 - not parsing & as this broke urls querystrings.