]*>', '', 'ALL')#> Any ideas greatly appreciated as im banging my head against another wall. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => samb1 [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Removing unwanted html tags - Coldfusion - Advanced Techniques

Removing unwanted html tags - Coldfusion - Advanced Techniques

Guys I have a list of links that I have pd using regexp. However when I output them, some of them have html tags still attached as well as the HREF. Im currently using a regex from a CF book to remove the tags but it doesnt work. The regex is '<[^>]*>', '', 'ALL')> Here is an example of the links I output: <td><a href='http://www.rspb.org.uk:80/vacancies/?id=3440305'> Any help with this is greatly appreciated....

  1. #1

    Default Removing unwanted HTML tags

    Guys I have a list of links that I have pd using regexp. However when I
    output them, some of them have html tags still attached as well as the HREF.
    Im currently using a regex from a CF book to remove the tags but it doesnt
    work. The regex is '<[^>]*>', '', 'ALL')> Here is an example of the links I
    output: <td><a href='http://www.rspb.org.uk:80/vacancies/?id=3440305'> Any
    help with this is greatly appreciated.

    samb1 Guest

  2. #2

    Default Re: Removing unwanted HTML tags

    Guys
    Im still struggling with this if any one has any ideas. Thanks
    samb1 Guest

  3. #3

    Default Removing unwanted html tags

    Guys I have pd three different websites for job links. Ive then placed the
    links into an array but when I output the array I can see that the links have
    html tags around them. I need to remove the tags so that I can perform cfhttp
    requests on the links. Here is the code Im using: <!---HTTP Call each site
    index attribute from the XML---> <cfhttp method='get'
    URL='#Trim(xmlObj.xmlRoot.site.xmlAttributes.index )#'
    ResolveURL='yes'></cfhttp> <cfset StartPos = 1> <cfloop condition
    ='True'> <!---P the site index pages for job links---> <cfset
    Match = REFindNoCase(#Trim(xmlObj.xmlRoot.site.p.xmlAt tributes.re)#,
    cfhttp.FileContent, StartPos, True)> <cfif Match.pos[1] EQ 0>
    <cfbreak> <cfelse> <cfset StartPos = Match.pos[1] +
    Match.len[1]> <!---<cfset Foundlinks = Mid(cfhttp.FileContent,
    Match.pos[1], Match.len[1])>---> <cfset StripLinks =
    #REReplace(#Mid(cfhttp.FileContent, Match.pos[1], Match.len[1])#,'<[^>]*>', '',
    'ALL')#> <!---Store the list of FoundLinks into the Links Array--->
    <cfset LinksArray= ListToArray(StripLinks)> <cfset counter = 1>
    <cfdump var='#LinksArray#'> </cfif> </cfloop> Any ideas
    greatly appreciated as im banging my head against another wall.

    samb1 Guest

  4. #4

    Default Re: Removing unwanted HTML tags

    I close to throwing myself from a top floor window (bit of an exageration) with this one. Thanks
    samb1 Guest

  5. #5

    Default Re: Removing unwanted HTML tags

    I've always used this function I wrote. This always works for me.

    function StripTags(string) {
    pattern = '<[^>]*>';
    return REReplaceNoCase(#string#, #pattern#, '' , 'ALL');
    }
    thejuggler Guest

  6. #6

    Default Removing unwanted html tags

    How would you modify the regex to remove all html tags except <b></b>
    Mike Guest

Similar Threads

  1. [PHP] comparing xml files, removing some html tags
    By Jabber@Raditha.Com in forum PHP Development
    Replies: 0
    Last Post: August 21st, 04:21 AM
  2. comparing xml files, removing some html tags
    By Robert Mena in forum PHP Development
    Replies: 0
    Last Post: August 18th, 02:35 AM
  3. Removing Unwanted Download
    By bc in forum Windows Setup, Administration & Security
    Replies: 2
    Last Post: July 13th, 09:33 PM
  4. Removing or Deleting an unwanted program
    By Gene Ferguson in forum Windows Networking
    Replies: 1
    Last Post: July 10th, 06:15 AM
  5. Removing Unwanted Objects
    By Jim in forum Adobe Photoshop Elements
    Replies: 0
    Last Post: July 1st, 06:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •