🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

tm-content-parser

Package Overview
Dependencies
Maintainers
11
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-content-parser

Trinity Mirror Content Type Parser

1.0.24
latest
npm
Version published
Maintainers
11
Created
Source

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.

FAQs

Package last updated on 13 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts