Highlighted the beginning and the end of the html tag

[En]: Hello all,.

I wonder if it is possible to display the start and end of an html tag set highlight (or with a different background) when it is activated.

THX

Sorry for my English.

_________________________________________

[En] Hello to all and all,

I would like to know if it is possible to display the start and end of a tag html highlighted (or with a different background) when this one is selected.

Thank you

In English: In Code view, select the parent tag.  See screenshot below.

English: In Code view, select parent tag. See screenshot below.

Nancy O.

Tags: Dreamweaver

Similar Questions

  • Firefox 4 is unable to install add-ons. After download the 'installation' bar stuck in the beginning and never ends.

    Firefox 4 is unable to install add-ons. After download the 'installation' bar stuck in the beginning and never ends.
    After that I updated to 3.6, FF4 to see any of my previous modules.
    When you try to install the new, I see no error dialog box or message, just install bar is not going anywhere.

    To anyone out there yet with this issue.
    The solution that worked for me was to create a new user profile.
    Give it a try, if it works you can just move your settings and other things more.
    Oli

  • ctx_doc. Markup html if break keywords found in the html tags

    Running Oracle 9.2.0.8

    I said to me the following indexes:
    DROP INDEX MULTI_CONTENT_EN_IDX;
    DROP INDEX MULTI_CONTENT_FR_IDX;
    
    Begin
    
    CTX_DDL.drop_preference('CRT_PREF_EN');
    CTX_DDL.drop_preference('CRT_PREF_FR');
    CTX_DDL.drop_section_group('CRT_XML_SECTION');
    ctx_ddl.drop_preference('crt_user_datastore_en');
    ctx_ddl.drop_preference('crt_user_datastore_fr');
    ctx_ddl.drop_preference('CRT_LEXER_FR');
    ctx_ddl.drop_preference('CRT_LEXER_EN');
    
    
    ctx_ddl.create_preference( 'crt_user_datastore_en', 'user_datastore' );
    ctx_ddl.set_attribute( 'crt_user_datastore_en', 'procedure', 'ctxsys_multi_index_en_prc' );
    ctx_ddl.set_attribute('crt_user_datastore_en', 'output_type', 'CLOB');
    
    ctx_ddl.create_preference( 'crt_user_datastore_fr', 'user_datastore' );
    ctx_ddl.set_attribute( 'crt_user_datastore_fr', 'procedure', 'ctxsys_multi_index_fr_prc' );
    ctx_ddl.set_attribute('crt_user_datastore_fr', 'output_type', 'CLOB');
    
    CTX_DDL.create_preference('CRT_PREF_EN','BASIC_WORDLIST');
    ctx_ddl.set_attribute('CRT_PREF_EN','FUZZY_MATCH','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','STEMMER','ENGLISH');
    ctx_ddl.set_attribute('CRT_PREF_EN','SUBSTRING_INDEX','TRUE');
         
    CTX_DDL.create_preference('CRT_PREF_FR','BASIC_WORDLIST');
    ctx_ddl.set_attribute('CRT_PREF_FR','FUZZY_MATCH','FRENCH');
    ctx_ddl.set_attribute('CRT_PREF_FR','STEMMER','FRENCH');
    ctx_ddl.set_attribute('CRT_PREF_FR','SUBSTRING_INDEX','TRUE');
     
    CTX_DDL.create_section_group('CRT_XML_SECTION','XML_SECTION_GROUP');
    CTX_DDL.add_zone_section('CRT_XML_SECTION', 'title', 'title');
    CTX_DDL.add_zone_section('CRT_XML_SECTION', 'content', 'content');
    
    
    ctx_ddl.create_preference('CRT_LEXER_EN', 'BASIC_LEXER');
    ctx_ddl.set_attribute('CRT_LEXER_EN', 'skipjoins', '-');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_text', 'YES'); 
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'base_letter', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_stems', 'ENGLISH');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_EN', 'theme_language', 'ENGLISH');
    
    
    ctx_ddl.create_preference('CRT_LEXER_FR', 'BASIC_LEXER');
    ctx_ddl.set_attribute('CRT_LEXER_FR', 'skipjoins', '-');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_text', 'YES'); 
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'base_letter', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_stems', 'FRENCH');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'CRT_LEXER_FR', 'theme_language', 'FRENCH');
    
    end;
    
    
    CREATE INDEX MULTI_CONTENT_EN_IDX ON CONTENTS
    (top_html_content_en)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_en LEXER CRT_LEXER_EN wordlist CRT_PREF_EN section group CRT_XML_SECTION');
    
    CREATE INDEX MULTI_CONTENT_FR_IDX ON CONTENTS
    (top_html_content_fr)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('filter ctxsys.null_filter DATASTORE crt_user_datastore_fr LEXER CRT_LEXER_fr wordlist CRT_PREF_fr section group CRT_XML_SECTION');
    In my user data store, I build an XML representation of the content, by wrapping each column with a XML tag clob value and the content of CLOB is ignored with CDATA blocks, as it contains various html tags.

    My point culminating procedure resembles the following:
    PROCEDURE highlight_query_result (
          p_query_string_in        IN              VARCHAR2,
          p_index_name_in          IN              VARCHAR2,
          p_pk_id_in               IN              NUMBER,
          p_top_content_html_out   IN OUT NOCOPY   CLOB,
          p_content_html_out       IN OUT NOCOPY   CLOB,
          pn_error_ind_out         OUT             error_logs.error_log_id%TYPE
       )
       IS
          l_clob              CLOB;
          l_cdata_start_len   INTEGER := LENGTH ('<![CDATA[');
          l_cdata_end_len     INTEGER := LENGTH (']]>');
          l_top_content       CLOB;
          l_bottom_content    CLOB;
          l_len               INTEGER;
          xmldoc              XMLTYPE;
    
          PROCEDURE cleanuptemplobs
          IS
          BEGIN
             IF DBMS_LOB.istemporary (l_top_content) = 1
             THEN
                /* Free the temporary LOB locator: */
                DBMS_LOB.freetemporary (l_top_content);
             END IF;
    
             IF DBMS_LOB.istemporary (l_bottom_content) = 1
             THEN
                /* Free the temporary LOB locator: */
                DBMS_LOB.freetemporary (l_bottom_content);
             END IF;
          END cleanuptemplobs;
       BEGIN
          pn_error_ind_out := 0;
          DBMS_LOB.createtemporary (l_top_content, TRUE);
          DBMS_LOB.createtemporary (l_bottom_content, TRUE);
          ctx_doc.markup (index_name      => p_index_name_in,
                          textkey         => ctx_doc.pkencode (p_pk_id_in),
                          text_query      => p_query_string_in,
                          restab          => l_clob,
                          plaintext       => false,
                          tagset          => 'HTML_DEFAULT',
                          starttag        => '<span class="highlight">',
                          endtag          => '</span>'
                         );
          xmldoc := XMLTYPE.createxml (l_clob);
    
          IF xmldoc IS NOT NULL
          THEN
             IF xmldoc.EXISTSNODE ('//bottom_content/text()') = 1
             THEN
                l_bottom_content :=
                         xmldoc.EXTRACT ('//bottom_content/text()').getclobval
                                                                              ();
                l_len := DBMS_LOB.getlength (l_bottom_content);
                DBMS_LOB.COPY (p_content_html_out,
                               l_bottom_content,
                               l_len - (l_cdata_start_len + l_cdata_end_len),
                               1,
                               l_cdata_start_len + 1
                              );
             END IF;
    
             IF xmldoc.EXISTSNODE ('//top_content/text()') = 1
             THEN
                l_top_content :=
                            xmldoc.EXTRACT ('//top_content/text()').getclobval
                                                                              ();
                l_len := DBMS_LOB.getlength (l_top_content);
                DBMS_LOB.COPY (p_top_content_html_out,
                               l_top_content,
                               l_len - (l_cdata_start_len + l_cdata_end_len),
                               1,
                               l_cdata_start_len + 1
                              );
             END IF;
          END IF;
    
          -- cleanup to avoid memory leaks...
          cleanuptemplobs;
       EXCEPTION
          WHEN OTHERS
          THEN
             -- cleanup to avoid memory leaks...
             cleanuptemplobs;
             pn_error_ind_out := SQLCODE;
             log_package_error_prc ('search_pkg.highlight_query_result',
                                    SQLERRM,
                                    pn_error_ind_out
                                   );
       END highlight_query_result;
    I use SQLXML to retrieve the nodes (since I'm on XML_SECTION_GROUP), and stripping the CDATA blocks... then copy it into the out CLOB, back to the appellant.

    Everything seems to work fine, until I find myself with a culmination of the keyword in a HREF... which basically breaks the page with no html tags valid on exit... such as:
    <a href="http://www.linktowebsite.com/<span class="highlight">keyword</span>.shtml#obtain">How to request a copy of a <span class="highlight">keyword</span> already issued</a>
    I have the feeling that this could be due to CDATA and XML block... being escaped on output html tags, and even if null_filter is used for indexing, it ignores the html escape characters and indexes all content stream.

    Any ideas?

    If what you have is html and you must keep intact, then it makes sense to use html_section_group instead of xml_section_group. The following creates a minimal test environment, reproduces the problem with the xml_section_group, and fixes the problem by using html_section_group. Lists of multiples and lexers words are not necessary to reproduce the problem. Markup draws in the field index tables, so what you do afterwards are not relevant to the problem. What follows is therefore only of creating the table with primary key, the insertion of a row of data, the creation of the Group of sections and index, display of chips and markup output. If refine you the code like this, which makes it much easier to understand and reproduce the problem and refine the cause.

    SCOTT@orcl_11g> -- test environment:
    SCOTT@orcl_11g> -- table and data:
    SCOTT@orcl_11g> CREATE TABLE CONTENTS_TEST
      2    (CONTENT_ID           NUMBER(10) PRIMARY KEY,
      3       CONTENT_HTML_CONTENT  CLOB)
      4  /
    
    Table created.
    
    SCOTT@orcl_11g> SET DEFINE OFF
    SCOTT@orcl_11g> Insert into CONTENTS_TEST
      2    (CONTENT_ID, CONTENT_HTML_CONTENT)
      3  Values
      4    (1,
      5       '<![CDATA[AIG - Program Overview]]>Introduction
    6 Apprenticeship 7 ]]>
    ') 8 / 1 row created. SCOTT@orcl_11g> -- reproduction of problem: SCOTT@orcl_11g> -- section group and index: SCOTT@orcl_11g> begin 2 CTX_DDL.create_section_group('CRT_XML_SECTION','XML_SECTION_GROUP'); 3 CTX_DDL.add_zone_section('CRT_XML_SECTION', 'title', 'title'); 4 CTX_DDL.add_zone_section('CRT_XML_SECTION', 'content', 'content'); 5 end; 6 / PL/SQL procedure successfully completed. SCOTT@orcl_11g> CREATE INDEX MULTI_CONTENT_EN_IDX 2 ON CONTENTS_TEST (content_html_content) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 parameters ('section group CRT_XML_SECTION') 5 / Index created. SCOTT@orcl_11g> -- tokens: SCOTT@orcl_11g> select token_text from dr$multi_content_en_idx$i 2 / TOKEN_TEXT ---------------------------------------------------------------- AIG APPRENTICESHIP BR COM CONTENT HREF HTML HTTP INTRODUCTION OVERVIEW P PROGRAM SITE STRONG TITLE 15 rows selected. SCOTT@orcl_11g> -- markup: SCOTT@orcl_11g> declare 2 l_clob CLOB; 3 BEGIN 4 ctx_doc.markup 5 (index_name => 'multi_content_en_idx', 6 textkey => ctx_doc.pkencode (1), 7 text_query => 'apprenticeship', 8 restab => l_clob, 9 plaintext => FALSE, 10 tagset => 'HTML_DEFAULT', 11 starttag => '', 12 endtag => ''); 13 dbms_output.put_line (l_clob); 14 end; 15 / <![CDATA[AIG - Program Overview]]>Introduction
    apprenticeship.html">Apprenticeship ]]>
    PL/SQL procedure successfully completed. SCOTT@orcl_11g> -- correction of problem: SCOTT@orcl_11g> -- section group and index: SCOTT@orcl_11g> DROP INDEX MULTI_CONTENT_EN_IDX 2 / Index dropped. SCOTT@orcl_11g> exec CTX_DDL.drop_section_group('CRT_XML_SECTION') PL/SQL procedure successfully completed. SCOTT@orcl_11g> begin 2 CTX_DDL.create_section_group('CRT_HTML_SECTION','HTML_SECTION_GROUP'); 3 CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'title', 'title'); 4 CTX_DDL.add_zone_section('CRT_HTML_SECTION', 'content', 'content'); 5 end; 6 / PL/SQL procedure successfully completed. SCOTT@orcl_11g> CREATE INDEX MULTI_CONTENT_EN_IDX 2 ON CONTENTS_TEST (content_html_content) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 parameters ('section group CRT_HTML_SECTION') 5 / Index created. SCOTT@orcl_11g> -- tokens: SCOTT@orcl_11g> select token_text from dr$multi_content_en_idx$i 2 / TOKEN_TEXT ---------------------------------------------------------------- APPRENTICESHIP CDATA CONTENT INTRODUCTION P TITLE 6 rows selected. SCOTT@orcl_11g> -- markup: SCOTT@orcl_11g> declare 2 l_clob CLOB; 3 BEGIN 4 ctx_doc.markup 5 (index_name => 'multi_content_en_idx', 6 textkey => ctx_doc.pkencode (1), 7 text_query => 'apprenticeship', 8 restab => l_clob, 9 plaintext => FALSE, 10 tagset => 'HTML_DEFAULT', 11 starttag => '', 12 endtag => ''); 13 dbms_output.put_line (l_clob); 14 end; 15 / <![CDATA[AIG - Program Overview]]>Introduction
    Apprenticeship ]]>
    PL/SQL procedure successfully completed. SCOTT@orcl_11g>
  • How to access the HTML tag in an existing PHP site.

    Hi, im using dreamweaver on windows 10 cs6. I tried to change an existing (PHP) site and in code view, I can only see the php code and functions, but I want to change the html markup that I see in the source of the page on a browser command to change the look and feel. How can I do this?

    You are dealing with a system of management of content called Collabtive. I never heard talk before, but one of the comments in the code you have posted it evokes by name.

    There should be an administrative section that connect you to delete existing records and add new ones. You stay away from all of the PHP files. There is a demo of the admin Collabtive section online for you to take a look at.

  • How to get the html tags in APEX_ITEM. DISPLAY_AND_SAVE

    Hello

    I want to create a tabular report and want to have control of the internal cells, because later I intend to use an AJAX script here.

    One of the columns that I try to use APEX_ITEM. DISPLAY_AND_SAVE but here's some HTML tags are not displayed correctly.

    Have I missed something here. Please let me know how I can display content with HTML tags. Is there another variant of APEX_ITEM that I can use to display HTML tags as well.


    Thank you
    Vikas

    Published by: Vikas Krishna on November 10, 2009 01:37

    I'm not clear if the hidden form element generated by APEX_ITEM. DISPLAY_AND_SAVE is required for your purpose? Mention of innerhtml and using a standard report column leads me to think that it isn't. If this is the case, please describe what you try to do more in detail. If this is not the case, try another approach to standard column of report:

    1 change the query to return the following columns:

    replace(DESCRIPTION, ':', '
    ') description, rownum rn

    2 hide column of RN in the report attributes.

    3. change the DESCRIPTION column to return an HTML Expression:

    #DESCRIPTION#
    

    Adding ID and a class should provide connections in the subsequent treatment of AJAX. The appearance can be changed by adding a style attribute to the HTML Expression, or better styling class in a style sheet:

    .description {
      color: blue;
      font-weight: bold;
    }
    

    (Do not use the < police > items: they have been deprecated for ten years; < b > is almost always best handled with CSS.)

  • Remove the HTML tag to convert the site in CSS

    My site use any CSS and I need to change that. Is there a quick way to remove all the HTML code but leave in the links? I can copy the text via a browser, but I lost all the links to the images.

    Thank you

    "align" isn't a tag - it is an attribute. As I suspected, your best bet is
    to start again.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "bastiat" wrote in message
    News:gefeta$6LL$1@forums. Macromedia.com...
    > I can't get this to work with the tag "align".

  • Search find and style of text between HTML tags

    Here is an example in indesign. Ive been working with Word, Pages, Openoffice, and it's hard for everyone to submit documents style correctly. We found that the easiest way is to use HTML tags to indicate what gets the title beyond the standard paragraph style.

    < i > < /i > italic

    < b > "BOLD" < /b >

    code < code > < code >

    Code in bold < CODE > < CODE >

    Email or Adresse_web < url > < / url >

    I would like to search for ' < url > any character < / url > ' and add a character style to the text between the tags. Its ok if the style is applied to the tags, I can just "< url >" search and replace with white spaces.

    The question im hits which is a search for "< url >. "< / url >" returns 0 results. The '. ' is any character from the drop-down list of search next to the text field.

    I looked into GREP, but I've not had much luck find an answer CLAIRE using GREP.

    Right now what I'm doing is "< url >" search add a character style for the text between the tag found "url" and then when I'm done doing all this, do a quick find and replace "< URL >" and "< / url >. I was wondering if there was a faster way... Any help is very appreciated.

    Ah - Peter S. beat me to it! You add a question mark ()(.+) ()(.+?) (tag in the document at the last. (Parentheses are not required - in fact, the parentheses force InDesign in creating unnecessary references, making it less effective GREP. Although in short documents, you won't notice that.

    Peter K.

  • Worm 4 began the audit at the end of the HTML tags?

    I left the > off a
    tag and in Ver 3.6.x isn't a problem. Ver 4, 5 and 6, it is. In this case, it's the tag just before a tab of the < form > and the Send button does not work.

    Yes, if the HTML5 parser is activated (pref html5.parser.enable), then a large number of these errors that caused no problems in Firefox 3 can now be the cause of problems.

    You can usually see these minor errors if you look at the source code of the page.

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Page Source
    • Right-click on a web page to open the shortcut menu and select the Source of the Page
  • How does conditional formatting with dates in a beach (not only with a beginning and an end date)?

    In Figure 3.6.1 conditional formatting.

    I want to highlight a cell with a date, say January 8, 2016, if the date is included in a list of dates, say the following:

    Date to be highlighted in the case of:

    25.3.2013 1.8.2016 8.1.2016

    List of dates to look in:

    Header 1 Header 2 Header 3

    1.1.2016

    28.10.2015

    3.4.2012

    2.2.2016 8.1.2016 31.12.2016

    When we look at the conditional formatting rules, I found a rule of that date is in the range. So, I selected the start and the final cell in my region in the table 'List dates' and confirmed the rule. But nothing has changed - what can I do?

    Hi ohi3000,

    While conditional highlighting saw is somewhat improved, it's going to be work to do what you want. You will need to compare your cell to every cell in your range:

    For example, a rule for each cell. You could probably deal with formulas and additional cells, but which may require an extra cell for each date that you want to match.

    Quinn

  • Regular expression to remove the space in the HTML tag

    Hi all

    My HTML string is as below.

    Select ' < CityName > RICHMOND < / Nom_ville >< StateCd > ABCD CDE< StateCd / >< CtryCd > CAN < / CtryCd >< CtrySubDivCd > BC < / CtrySubDivCd > ' double Str

    Output desired is

    < CityName > RICHMOND < / Nom_ville > < StateCd > ABCD CDE< StateCd / > < CtryCd > CAN < / CtryCd > < CtrySubDivCd > BC < / CtrySubDivCd >

    I want to remove these spaces of the tag value box with only spaces otherwise leave it as what. Please help to implement the same using regular expressions.

    Hello

    We don't know what you want.  This site seems to be formatting your message in a weird way.

    As the statement

    SELECT «...» "THE DOUBLE;

    without formatting, to show your entry and after the exact output desired friom as, with as little in shape as possible.  It might be useful if you use some character like ~ instead of spaces (just for viewing; we will find a solution that works for spaces).

    To remove the text which consists of spaces and nothing else between the tags, you can say

    REGEXP_REPLACE (str

    , '> +<>

    , '><>

    )

    How is this string generated?  Maybe there is an easier and more effective way to keep the bad wrtings sub off the chain in the first place.

  • incorporate the HTML tag in the text message

    Hello
    Can I include any HTML in example VO text query as in

    SELECT ' < HTML > < F O N T C O L O R = "R E D ' > ' | NAME | "< / F O N T > < / HTML > ' FROM EMP

    ?

    I tried but it doesn't work, I'm just

    < HTML > < F O N T C O L O R = "R E D" > JOHN < / F O N T > < / HTML > "

    on the page.

    I was wondering if anyone else had the most successful?

    Thank you

    Anatoliy

    Published by: asmirnov on November 18, 2012 20:04

    Published by: asmirnov on November 18, 2012 20:05

    Hello

    You can display HTML text using bean RawText. Assign the ViewAttribute value.

    For SQL: I don't think that you should mention html and other optional tags... you can simply use tags as follows:
    SAMPLE TAG*.

    I tested your code using RawText bean... its works fine for me...
    -----
    OARawTextBean rawTxt = (OARawTextBean) webBean.findChildRecursive ("rawTxtId");
    * if(rawTxt!= null) {*}
    rawTxt.setValue (pageContext"JOHN");
    *}*
    -----

    Kind regards
    Swati

  • Display the HTML TAGS in the results of the selection...

    Hello

    Here is a SELECTION, I'm doing;
    SET MARKUP HTML ON
    SELECT   col1
               , '<A HREF="/cgi-bin/${PROGNAME}?${QUERY_STRING}&mykey='||col1||'">' || NAME || '</A>' "NAME"
              
    Now what I expect of this is a table where the second column would be a hyperlink.

    An example would be like this;
    SET MARKUP HTML ON
    SELECT SYSDATE, '<A HREF="/cgi-bin/appointments?date="' || SYSDATE || '">' || SYSDATE || '</A>'
      FROM DUAL;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Entmap off Set will do.

    Oh, answer already given. Anyway, look here:
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b31189/CH7.htm

    Published by: InoL on July 23, 2010 13:19

  • Repeat the HTML tag?

    It is possible to repeat a tag HTML with PHP, Spry, or something else? Basically, I want to repeat the < title > as a < h1 > tag.

    Okay, Yes, that's what I was talking about. Thank you

  • How to convert RTF file to the Html tag in java?

    I want to convert Doc to Html tag in java.

    I need this conversion of java code.


    Can you tell me use jar or class?


    DOC/RTF = > CONVERT INTO = > HTML tag


    regads Ninja,

    Published by: Ninja on 1 Sep, 2011 19:12

    Published by: Ninja on 1 Sep 2011 22:03

    A simple google search reveals this: http://www.codeproject.com/Tips/136483/Java-How-to-convert-RTF-into-HTML

  • Stripping all the HTML of a CLOB

    Hi all

    Running Oracle 9.2.0.8 on AIX...

    We have a table that stores the HTML document fragments in a clob. I have a requirement to convert them into plain text / (remove all the HTML tags) for sending in a body of text/plain e-mail.

    I read the following solution to the site of Tom Kyte:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:25695084847068

    Basically, creating a text index Oracle CLOB column and appellant with true ctx_doc.filter assigned to the parameter 'plaintext '.

    I noticed in the example of Tom, he uses the filter by default, based on the docs, NULL_FILTER, which applies to any filtering. I tried the example in my dev box, creating the text index on the CLOB column without parameters.

    The call to ctx_doc.filter filtered html code at all. I recreated the index and specified the INSO_FILTER and filtering has been performed. I was under the impression that INSO_FILTER was for binary content in plain text filtering...
    create table filter ( query_id number, document clob );
    
    create table demo
      ( id            int primary key,
        theclob       clob
      );
    
    create index demo_idx on demo(theClob) indextype is ctxsys.context;
    
    SET DEFINE OFF;
    Insert into DEMO
       (ID, THECLOB)
     Values
       (1, '<html><body><p>This is a test of <strong>ctx_doc.filter</strong> and plaintext filtering.</p></body></html>');
    COMMIT;
    
    exec ctx_doc.filter('demo_idx',1, 'filter',1, true);
    The code above does not convert html to plain text...

    Now re-create the index with INSO_FILTER
    drop index demo_idx;
    
    create index demo_idx on demo(theClob) indextype is ctxsys.context parameters ('filter ctxsys.inso_filter');
    
    exec ctx_doc.filter('demo_idx',1, 'filter',1, true);
    Above script returns string "this is a test ctx_doc.filter and filtering of plain text.

    ORacle documentation does not specify any special filter parameter that needs to be fixed... I was wondering, am I missing soemthing here... or, better yet, if there is a better solution to my problem. ;-)

    Thank you

    Stéphane

    This is a brute force method.

    SCOTT@orcl_11gR2> create table demo
      2    (id       int primary key,
      3       theclob   clob)
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> insert into demo values (1,
      2    '

    This is a test of ctx_doc.filter and plaintext filtering.

    ') 3 / 1 row created. SCOTT@orcl_11gR2> CREATE OR REPLACE FUNCTION no_html 2 (p_string IN CLOB) 3 RETURN CLOB 4 AS 5 v_string_in CLOB := p_string; 6 v_string_out CLOB; 7 BEGIN 8 WHILE INSTR (v_string_in, '>') > 0 LOOP 9 v_string_out := v_string_out 10 || SUBSTR (v_string_in, 1, INSTR (v_string_in, '<') - 1); 11 v_string_in := SUBSTR (v_string_in, INSTR (v_string_in, '>') + 1); 12 END LOOP; 13 v_string_out := v_string_out || v_string_in; 14 RETURN v_string_out; 15 END no_html; 16 / Function created. SCOTT@orcl_11gR2> SHOW ERRORS No errors. SCOTT@orcl_11gR2> SELECT id, no_html (theclob) FROM demo 2 / ID ---------- NO_HTML(THECLOB) -------------------------------------------------------------------------------- 1 This is a test of ctx_doc.filter and plaintext filtering. 1 row selected. SCOTT@orcl_11gR2>

Maybe you are looking for