Skip HTML in Search

I am starting a data entry page and I am considering using one of the HTML Editor Text Area type items. The data is going into a CLOB. After a little experimentation using the dbms_lob package I see that the HTML tags are stored with the text as in:
Called James about last order. He is <b>really excited</b> about the new product line.
Is there a function to remove the HTML tags from text before searching it? I know I can change the search string to include wild card characters between words and do a "like" comparison, but if I am looking for the word "excited" and the user only highlights "excite" when they click the bold button in the HTML editor then the stored text would be "... excite</b>d...", which obviously isn't "like '%excited%'".
As Dan McGhan pointed out in a (slightly) related Re: Classic report - Strip HTML not working :
"... don't worry about those few users ...; they will be the exception, not the rule."
However, the question stands: Is there a function to remove the HTML tags from text before searching it?
Thanks,
Gregory
Edited by: Canis Polaris on Sep 25, 2009 8:41 AM
There's supposed to be a closing bold tag between the "e" and the "d" above but it's being removed when I view this. Question 2: How can I force the display of an html tag here in the Forum?

I think I swiped this from Tom Kyte but give it a shot
CREATE OR REPLACE FUNCTION str_html(line IN VARCHAR2) RETURN VARCHAR2 IS
  x       VARCHAR2(32767) := NULL;
  in_html BOOLEAN := FALSE;
  s       VARCHAR2(1);
BEGIN
  IF line IS NULL THEN
    RETURN line;
  END IF;
  FOR i IN 1 .. length(line) LOOP
    s := substr(line, i, 1);
    IF in_html THEN
      IF s = '>' THEN
        in_html := FALSE;
      END IF;
    ELSE
      IF s = '<' THEN
        in_html := TRUE;
      END IF;
    END IF;
    IF NOT in_html AND s != '>' THEN
      x := x || s;
    END IF;
  END LOOP;
  RETURN x;
END str_html;

Similar Messages

  • RoboHelp HTML 9 Search Pane Max results controls

    RoboHelp HTML 9 with WebHelp as output...
    I have a two part question. By default when our users do a search in compile dhelp, they see 10 search results per page. Is there a place in my RoboHelp interface where I can change that to larger number? I have found a line of code in a *.js file where it looks like I could manually change it, but would prefer not to have to do it that route in case that causes unintended hiccups elsewhere.
    var nMaxResult = 10 ; 
    Second part of my question is related to statement in release notes/new features notes for RoboHelp 9 that state users can control the max search results per page on-the-fly as they use the Search pane. This feature only applies to WebHelp or WebHelp Pro and my output is WebHelp. I can see a line of code for that feature in the whfform.htm file but nothing shows up like that in the Search pane within compiled help. Is this a bug or is there a control somewhere in RoboHelp project settings that allows me to enable that option for users? The last 2 lines below would seem to control this area. The Search pane items referenced in first 4 lines do show up ok in my Search pane.
    gsTitle = "Type in the word(s) to search for:";
    gsTitle = "Type in the word(s) to search for:";
    gsHiliteSearchTitle = "Highlight search results";
    gsHiliteSearchTitle = "Highlight search results";
    gsMaxSearchTitle = "Search results per page" ;
    gsMaxSearchTitle = "Search results per page";
    Thanks for any insight you can provide,
    KF

    I know this is an old topic, but I was trying to figure this out myself today and finally found it. In case others have been looking for this, it's in in this file:
    whform.js
    find this variable:
    var gnMaxRslt = 10;
    and then change the 10 to the number you want.
    If you do that in the generated help, the number will change in the Search pane, but it will still display only 10 results. To get it to actually display more than 10 results, I had to edit the RoboHelp file, not the generated help. I made a copy of C:\Program Files (x86)\Adobe\Adobe RoboHelp 10\RoboHTML\WebHelp5Ext\template_stock\whform.js before I edited it. (Right-click the file, click Copy, then right-click in the folder and click Paste. Edit the one that doesn't say Copy in the filename. Then if you want to back it out, delete the one you edited and remove Copy from the original.) If you have your project open in RoboHelp, close it, then reopen it so it can "grab" the new info.
    This ought to be in the WebHelp Setting dialog box on the Search pane.
    --Karla--

  • RoboHelp HTML 8 Search problem

    I have a single (non-merged) RoboHelp 8 HTML project in which I cannot seem to get Search working correctly.
    I expected to see a box into which I can type a search term and a blank pane below the Contents/Index/Search/Glossary bar where search results would appear.  Instead, I get the following when I generate WebHelp:
    This problem appears in IE 6, IE 7, Firefox 3.0, and Firefox 3.5, all of which our customer base uses.  I'm using RoboHelp 8 on a Windows PC with XP Pro 2002, SP3.
    In the Project Settings/General dialog, I have the default settings for the Stop List and the Always Ignore List selected.  For "Add new keywords to" I have "Index File (HHK)" selected, and "Binary Index" is selected.
    When generating WebHelp, I have the following set:
    General selections:  Under "Additional Options," "Apply to all Topics," "CSS" is selected, with the correct CSS name displayed.  "Add Mark of the Web" is selected.
    Navigation selections:  For Toolbar Buttons, Contents, Index, Search, Glossary are selected.  For Search Options, "Enable Highlight Search Results" is selected.
    Navigation Pane Preferred Format selection is Pure HTML.  (We tried DHTML/HTML but that resulted in an empty nav pane and a nonfunctional index.)
    Optimize Speed For:  Web Site (Internet)
    Publish:  Republish All.
    What are we doing wrong?  I'm totally stumped and I can't seem to find any help on this issue anywhere.  Thanks!

    Hi there
    Please do expound.
    MSMoore9412 wrote:
     I finally succeeded in getting a Search pane that looked right and performed correctly by deselecting the Mark of the Web option.
    To my knowledge this option only affects the output when you view things locally, as in when you are testing the output immediately after generating. Are you saying here that it somehow affected things after you uploaded the files to the server?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • HTML Tags search using TREX

    Hi All,
    Using following 2 documents I had tried to configure TREX to search HLTM tags. After following all the steps when I tired to search I don't get any results.
    1) How to set up web repository and crawling it for indexing.pdf
    2) How-to-guide for searchable HTML tags.pdf
    Any buddies please help?
    Thanks in advance.
    Mahesh

    Hi Suman,
    I am Manu's Colleague. We have the Hierarchy of Objects like this.
    Cubes --> Multiprovider -- > Aggregation level.
    We had two tranport requests one for the Planning objects Including Aggregation levels and the other for data model objects including cubes , DSO's and multiproviders. All deletion Requests.
    We moved the First transport request to production and we checked using Normal Find objectsand found no results for the aggregation Levels.We assumed all the objects were deleted.
    Then we moved the Datamodel transport request to Quasltiy and it failed stating that the Multiproviders are used in Aggregation Level. (this happened in Q)
    Then when we checked the aggreation Level in Planning Modeller we found it in there (this in both Q and P) and not in RSA1 transaction until we used TREX to retreive the result. (This in P as we dont have TREX in D and Q systems)
    This is the issues and beacuse of this we are not able to delete the Data models in the system.
    Thanks for all your previous replies and will be helpful if you have any idea ont his.
    Regards.
    Shafi.

  • RoboHelp 9 HTML FlashHelp Search Functionality

    Using RoboHelp 9 HTML with FlashHelp output. FlashPlayer is fully updated, as is RH.
    Whenever I access the generated help files, and attempt to Search on any word/phrase, I get a continuous Search (the "progress" bar moves back and forth under the "Searching.." indicator), and it never stops. No results are returned.
    I've searched on this, but while I saw results that some words have not been found in the past, I've not seen anything posted about a never-ending search.
    Any help on this would be appreciated.
    Thanks!
    Rich

    When you use View I would expect the search to work. The other methods might not work as you then get into Flash security issues.
    Create a new project with just a couple of topics. Test that and post back to tell me it is working.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Changing html using search

    Please help!
    I'm building a website and have decided to change a few things before publishing.
    There are numerous titles peppered throughout the site which I highlighted thus"
    <p class="record">Let's Barbeque</p>
    <p class="record">Carry On</p>
    <p class="record">Banana</p>
    Etc and so on
    I've decided that I want to change all these to <h4>
    Ie:
    <h4>Let's Barbeque</h4>
    <h4>Carry On</h4>
    <h4>Banana</h4>
    Etc and so on
    Is there a way this can be done using Find & Replace (i,e, replacing every <p class="record">whatever</p> with <h4>whatever</h4> rather than manually trawling the site and making replacements as and when i find them?
    Thank you

    Use the advanced find & replace features  - Search: Specific Tag (see screenshot)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • RoboHelp HTML 11 Search problems

    I have turned off Substring Search on the WebHelp. This a clinical information site so we have medical staff looking for diseases using acronyms. For example: If we search for "STI" (with or without quotes)... we get the documents and topics that have Sexually Transmitted Infections but we also have things like testing or posting show up as well. How can we get it webhelp search to stop finding these types of strings. I have tried to find answers in help and in the forum but I haven't been able to find any help. I've followed all the suggestions but it hasn't helped. I made sure that my current version of RoboHelp has all the updates and it continues to happen. Have you got any suggestions or words that I can tell users how to search effectively?
    Thanks
    Deb

    Thanks for the idea Jeff but I have already removed all of the indexed keywords from the topics. When a user searched, they received too many returns so we removed the index keywords. Users were complaining about too many returns. They are used to the Windows search function on their network and didn't like the webhelp search. I know they are going to complain about these substrings so I'm trying to get rid of them.

  • Searching for a term using the Search tab in HTML Help doesn't find all relevant topics.

    I'm using the Search tab in the HTML Help window to search for a few words.  But those words are not being located within the topics.  For example, one of the words for which I am searching is Australian.  I can find the topic that contains that word using the Contents tab.  But the Search tab doesn't find it.  I have even tried copying the word from that topic into the Search box but it is not found.
    Is there a known bug in HTML Help search capabilities?

    Is this a stand alone CHM file or is it merged? If it is merged, does the word appear in the search in the CHM containing the topic is searched? I assume you've checked that your Stop List doesn't contain the word being searched?

  • View search result docs as HTML

    We have several thousand HTML documents in our content areas that are formatted a specific way and contain internal links between them. Here's the problem:
    When you use the search, there is an option to "View as HTML" or "View as HTML with Search Terms Highlighted". When you click one of these icons, it seems to create a new HTML document instead of displaying the original HTML. This loses our custom formatting and breaks all of the internal links. Has anyone else run into this problem? Any suggestions of how to fix the problem? We're running 3.0.9.8.4 with InterMedia.
    Thanks!
    Rebecca

    Thank you.
    I looked up the bug on Metalink but there is no indication there of when this bug will be fixed. Do you know if they plan to fix it in 3.0.9 or only in version 2?
    Thanks!
    RR

  • Web page different from opening link in a new tab or new window from Google search results

    I had been using another browser for a few months because I did not want to lose the web pages I opened within Mozilla. I began using Mozilla again after saving off the web pages. I see that Google's web page pulls in search results as I type in keywords, a feature I don't remember seeing with other browsers along with a magnifying glass icon, like a look ahead of what a web page looks like before clicking on the link.
    With the list of search results, I click on the link and tell Mozilla to open the link in a new tab. I see the google icon, "loading..." or "testing...", then results other than the link I wanted. Those other results maybe bing.com, http://66.45.255.230/click.php?c=0920f96609cb269f1d0045095c09, http://superpages.iarbiz.com/o6gIoMdG6so=-tQ1LeOu1v0kY34rDZ|oRy8Xt294ACu6X, Info.com, Supermedia Reverse Proxy (http://superpages.iarbiz.com/o6gIoMdG6so=-tQ1LeOu1v0kY34rDZ|oRy8Xt294ACu6X)or whatever else. As for the link, I managed to press stop before being redirected.
    This is with any search results listed.
    I thought it was Google.
    Changed to Instant is off.
    Nope. Still the same issue. Have already gone after malware. Tried resetting the redirect value to 0.
    Above results also occur when opening the link in a new page via right menu click.
    Copying link location and pasting in a new window is displaying results okay.
    When resuming use of Mozilla, an update was available and installed. Did not experience the above issues before the update.
    Running version 3.6.12. Running Win XP Pro SP3.
    Had to go back to IE and Chrome/SRWare Iron.
    Example:
    Google keywords: rental cars
    Clicked on Ad: _Avis_Rent_a_Car_, link is Avis.com
    Clicked on top search result: Hertz_Rent-a-Car_-_Rental_Car_Discounts,_Coupons,_and_Great_Rates (magnifying glass), www.hertz.com

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • When I use the google search engine in the toolbar it just says not found,this is after I updated to the latest version of firefox

    Only occurs with google all the other search engines ex. bing,yahoo work.Also on the google home page when I click on classic view it does the same thing

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    <br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database.<br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • When returning to a google search, Firefox takes me to the top of the page

    I use Firefox exclusively as my browser. I also use Google as my default home page. I execute a google search, and am presented with a list of several pages of web sites. As I work my way through each of these sites, I wish to return to my search results and select the next item listed. When doing so, Firefox always returns me to the top of the list. I must then page down through the list and remember where I left off and select the next search item. Can this be fixed? Are my settings wrong? How can I prevent this?

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Whenever I use the search the results page comes up but if I try and access any of the pages i get the Not responding message

    I can access all my favourite websites ok. It is only when I try and access a page from using Search.

    Your plugins list shows two Flash plugins and other outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.0 r45
    # Shockwave Flash 10.1 r53
    # Adobe Shockwave for Director Netscape plug-in, version 11.0
    # Next Generation Java Plug-in 1.6.0_19 for Mozilla browsers
    Flash Player uninstall: http://www.adobe.com/go/tn_14157 (this will remove the Firefox Flash plugin and the ActiveX control for IE)
    Update the [[Flash]] and [[Shockwave|Shockwave for Director]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    *http://www.adobe.com/shockwave/welcome/
    *http://www.adobe.com/downloads/
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Unable to open any websites from the search engines. the ones I have tried are google, yahoo and ask. They opened until recently. The popup says" Firefox can't establish connection to the server." Ask worked last night but is not working now.

    When I try to open a web site from one of the search engines a pop up shows stating that Firefox can't establish connection to the server. I can't open any websites through any of the search engines.

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How Do I Display Quotation Marks in Dynamic HTML Text

    I'm using a dynamic text file that has some Quotation Marks
    that need to be displayed with the content on certain words in the
    TXT file.
    How do i display Quotation Marks inside a Dynamic text field?
    Please Advise. As soon as possible.
    Thanks

    Try this page - it does the job for you:
    http://www.dommermuth-1.com/protosite/experiments/encode/index.html
    Otherwise search this forum for "Special and characters and
    dynamic and text"
    You'll see a couple of thread on the topic. You have to
    encode the special characters for them to display correctly.

Maybe you are looking for