Support » Plugin: JSON Content Importer » How do I strip html tags from json content

  • Resolved joshuamt

    (@joshuamt)


    Hello

    I currently have a json file such as the one below but my problem is i dont know how to strip the html tags from it. For example i want the result “Test 123” but i keep getting the result “<p>Test 123</p>”. Any help would be appreciated, Thank you.

    “Page”: {
    “block-content”: {
    “BlockDescription”: “<p>Test 123</p>”

    ____________________________________________
    The code i am using is this:
    [jsoncontentimporter url=”myjsonfile.json”]
    {subloop:Page:10}
    {subloop:Page.block-content:10}
    {Page.block-content.BlockDescription}
    {/subloop:Page.block-content}
    {/subloop:Page}
    [/jsoncontentimporter]

Viewing 1 replies (of 1 total)
  • Plugin Author berkux

    (@berkux)

    Hi,

    you can’t strip tags (pro plugin can). What you can do is using them:
    {Page.block-content.BlockDescription:html}

    Bernhard

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.