tm-content-parser

1.0.24 • Public • Published

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.

/tm-content-parser/

    Package Sidebar

    Install

    npm i tm-content-parser

    Weekly Downloads

    8

    Version

    1.0.24

    License

    ISC

    Unpacked Size

    67.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • robertstettner
    • svozza
    • trinitymirrordigital-admin
    • ttollers
    • jeffdownie
    • chronos-automation
    • samwhite
    • nygel
    • giuseppe.battista
    • attila-m
    • apps-backend