Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: HTML to plain text conversion

  1. #1
    Join Date
    Aug 2013
    Posts
    6

    Default HTML to plain text conversion

    I have what looks like HTML within an XML document field <JobDescription>. See INPUT below. What I need to do is remove the html tags and create text as shown in OUTPUT.

    How, short of removing each html tag?

    Thanks in advance for any help.



    INPUT


    <JobDescription>

    <![CDATA[<br />This position may be located anywhere throughout the US<br /><br />The <b>Consultant</b>is a key role in planning, executing and delivering on the Operational Improvement Programs. .<br />]]>
    </JobDescription>

    OUTPUT



    This position may be located anywhere throughout the US


    The Consultant is a key role in planning, executing and delivering on the Operational Improvement Programs.

  2. #2
    Join Date
    Oct 2015
    Posts
    14

    Default

    Maybe something like this in a Modified JavaScript block?
    https://css-tricks.com/snippets/java...in-javascript/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.