Replace function for HTML tags

Hie Guys,
I would like to get rid of the HTML tags from a column/object in my report using the "Replace" function. Basically, I want to replace whatever the content is between "<" & ">" i.e. the opening and closing tags. I know I can use the "Pos" function to identify the position of "<" & ">", but I am not sure exactly how to achieve this in Webi. FYI -  "Read content as HTML" & "Read content as Hyperlink" did not resolve the issue. Can anyone please help? Thanks.

Hi Jeewan,
It will be very tedious to do this at Webi level.
I have tried below example. It might help you to work around your issue; however, not completely:
1. Created an Excel and inserted single value in first column as:
<html><b>this is yuvraj</b></html>
2. Used it as source and created a Webi report in Rich client.
3. Applied SubStr recursively using Pos function and created below variables:
test : =Substr([column_1]; Pos([column_1];">")+1;Length([column_1]))
test1: =Substr([test]; Pos([test];">")+1;Length([test]))
test2 : =Substr([test1]; 0;Pos([test1];"<")-1)
The output has been attached.

Similar Messages

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • [svn:fx-trunk] 5289: Fix for - HTML tags in span tags in ASdoc comments not being parsed correctly.

    Revision: 5289
    Author: [email protected]
    Date: 2009-03-12 21:09:58 -0700 (Thu, 12 Mar 2009)
    Log Message:
    Fix for - HTML tags in
    tags in ASdoc comments not being parsed correctly.
    QE Notes: Some baseline will require update.
    Doc Notes: None.
    Bugs: SDK-19815
    tests: checkintests, asdoc
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19815
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Resize/re-scale & optimize all images for the web in your graphics editor before you insert them into your web pages.  Saves bandwidth and reduces page load.
    Cycle2 is a responsive slideshow.  If you want all images to remain 400px and not responsive to layout,  you'll need to modify the CSS code a little.
    Details on using Previous & Next links are in the documentation.
    http://jquery.malsup.com/cycle2/demo/prevnext.php
    Nancy O.

  • Java wrapper for html tags

    Hi,
    I need one java wrapper class for html tags. If anyone is having such pls reply.
    Thanks in advance
    Sisir

    Like java.lang.String?
    You use it like this
    String textTag = "text";
    If that isn't what you had in mind then you might want to provide a bit more detail as to what you think it should do.

  • Struts 2 validation for HTML tags

    Hi,
    I am doing Struts2 validation with validation.xml for HTML tags. Here i am doing a binding between a form (bean) and the respective field in JSP and validation.xml. The validation error messages are populated without any problem but the value entered in the respective text field for HTML tags is not persisted. This problem does not occur if you use Struts 2 tags in JSP. Here is a snippet of what i am doing:-
    JSP:-
    <input:text name="accountForm.firstName" size="12" maxlength="20" />
    Action:-
    class AccountAction {
    private AccountForm accountForm;
    public void setAccountForm (AccountForm accountForm) {
    this. accountForm = accountForm;
    public String insertAccount () throws ApplicationException {
    // To get the account details from the JSP
    String first Name = accountForm.getFirstName ();
    action-validation.xml:-
    <validators>
    <field name="accountBean.firstName">
    <field-validator type="requiredstring">
    <param name="trim">true</param>
    <message> First Name is required.</message>
    </field-validator>
    </field>
    <validators>
    Whether it is possible to persist the value with HTML tags with Struts 2 validation? or i need to go with Struts 2 tags in JSP. Please shed some light in to it.
    Thanks,
    JavaCrazyLover

    FYI
    I am using spring framework with struts2 UI
    ..pls
    do the needful..
    Thanks in advance
    -Satish

  • Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    Does Logic Pro X include replacement functionality for Compressor, Soundtrack Pro and Waveburner from Logic Studio 9?

    No..  You can buy the Compressor (along with Mainstage) via the App Store as a separate download but STP and Waveburner are discontinued products. Some of STP's functionality can now be found in Final Cut Pro X...
    Note: Mainstage, Compressor, Waveburner and STP were part of the full version of Logic Studio 2.0 (which also included Logic Pro 9 ) and sold for $999 compared to Logic Pro X which retails at $200...
    The Apple loops/Jam packs that came as part of Logic Studio 2.0 now come free with Logic Pro X (and did so with the Appe store version of Logic Pro 9) .. as part of the additional downlaod

  • JSP/Servlets functions: clear HTML tags, clear SQL code, validate E-mail

    Hello!
    I am looking for java functions, which:
    - clear HTML tags
    - clear SQL injection code
    - validate an e-mail address
    Probably there are java build-in functions for doing that.
    Maybe anyone could give me their names?
    I would be also grateful for any help, links or something.

    Hi,
    You could try using ,
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    instead of
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    -Amol

  • Error in my CODE- replace data in html tags in APPLET

    MY REQUIREMENT:
    I'm trying to send html format of output to an excel file....As you can see my data in the td tag had data as: 
    BRANCHOFFICE<125 & BRANCHOFFICE>176 where < is interpreted as an html tag....So I want to replace
    < -> <
    < -> >
    & -> &
    <HTML>
    <table border="1">
    <tr>
    <td>BRANCHOFFICE<125 & BRANCHOFFICE>176</td>
    </tr>
    </table>
    </HTML>
    MY ERROR IN CODE:
    So I'm testing my replace method in a small snippet.........
    So the steps my code works is:
    1)BRANCHOFFICE<125 & BRANCHOFFICE>176 gets converted to
    BRANCHOFFICE<125 & BRANCHOFFICE>176
    2)BRANCHOFFICE<125 & BRANCHOFFICE>176 gets converted to
    BRANCHOFFICE<125 & BRANCHOFFICE>176
    3)when it comes to the third & conversion it goes to a infinte loop....
    CAN U PLS HELP ME TO SOLVE THIS BUG........
    import java.applet.Applet;
    import java.io.*;
    public class escape
    public static void main(String arg[])
    String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
    System.out.println("s1 = " + escape(s1));
    private static String escape(String s)
    while( true )
    int index = s.indexOf('<');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + "<" + after;
    continue;
    index = s.indexOf('>');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + ">" + after;
    continue;
    index = s.indexOf('&');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + "&" + after;
    continue;
    break;
    return s;
    }

    Jdk 1.4:import java.applet.Applet;
    import java.io.*;
    public class escape
         public static void main(String arg[])
              String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
              System.out.println("s1 = " + escape(s1));
         private static String escape(String s)
              s = s.replaceAll ("&", "&");
              s = s.replaceAll ("<", "<");
              s = s.replaceAll (">", ">");
              return s;
    }<= Jdk 1.3:import java.applet.Applet;
    import java.io.*;
    public class escape
         public static void main(String arg[])
              String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
              System.out.println("s1 = " + escape(s1));
         private static String escape(String s)
              s = replace (s, "&", "&");
              s = replace (s, "<", "<");
              s = replace (s, ">", ">");
              return s;
         private static String replace(String original, String find, String replacement) {
              int i=0;
              if ((i=original.indexOf(find)) > -1) return original.substring(0, i) + replacement
                   + replace(original.substring(i+find.length()), find, replacement);
              else return original;
    }

  • Calling function from html tag in dynamic textfield

    Hi!
    Tried several approaches for making this happen, but can't seem to do it. I could really use an example of how to do this in my particular case, since I'm not exactly a code - guru.....
    I have a sprite menu which populates a dynamic textfield  with textlabels as users click individual items in the menu in addition to ordinary actions(gotoAndStop).
    As these labels appear in the textfield, I want to be able to link them to the frames assosciated with the menu - item frames. As you can understand from this, I am working with the timeline.
    By enabling  html rendering of text in the textfield, I have been able to link these output labels via a  a href - tag, but I am not able to call a function from this html. The function I am trying to call uses a switch statement to take the appropriate actions according to which label is being clicked, but the only effect I get is the html opening a browser window...... Unfortunately I do not know how to explain this any better, but here is my code for the following:
    Main Timeline, frame 1, actions layer:
    [AS]import flash.display.*;
    import flash.events.*;
    import flash.display.Stage;
    var buttonTrace:TextField;
    var sectionNames:Array = new Array("Frontpage","Introduction",
    "Designparadigm", "Tooling", "Maya & c++ API", "Geometric Vectors","Lindenmayer systems","Artificial Life",
    "Projects","Litterature","Disclaimer","Site credits","Newsletter & Rss",
    "Blogging","Plugins","LINKS");
    var sectionCount: int = sectionNames.length;
    var menu:Sprite = new Sprite();
    menu.x = 452;
    menu.y = 172;
    this.addChild(menu);
    buildMenu();
    function buildMenu():void {
    for(var i:int=0; i < sectionCount ; i++){
    var item:MovieClip = new MenuItem();
    item.labelName = sectionNames[i];
    item.targetClip = this;
    if(i<4){
    item.y = i*125
    menu.addChild(item)}
    else if (i>3 && i<8){
    item.y = (i-4)*125
    item.x = 125
    menu.addChild(item)}
    else if (i>7 && i<12){
    item.y = (i-8)*125
    item.x = 250;
    menu.addChild(item)}
    else if (i>11 && i<16){
    item.y = (i-12)*125
    item.x = 375
    menu.addChild(item)}
    }[\A]
    Then, for the movieclip called MenuItem, I have button placed on the first frame of the timeline, and this code in the actions layer:
    [AS]import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.display.Stage;
    import flash.text.TextField;
    import flash.events.Event;
    import flash.events.TextEvent;
    var buttonTrace:TextField;
    var labelName:String;
    var targetClip:MovieClip;
    clickButton.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(evt:MouseEvent):void {
    trace(labelName);
    targetClip.gotoAndStop(labelName);
    MovieClip(root).buttonTrace.appendText("\n" + labelName);
    MovieClip(root).buttonTrace.addEventListener(TextEvent.LINK,linkHandler);
      function linkHandler(linkEvent:TextEvent):void {
      switch (linkEvent.text) {
      case"Introduction":
      var text= "Introduction";
      text.addEventListener(TextEvent.LINK,"Introduction");
      trace("Listening");
       Intro();
       break;
      case "Designparadigm":
       DP();
       break;
      case"Tooling":
       Tooling();
       break;
      case "Maya & c++ API":
       MayaAPI();
       break;
      case "Geometric Vectors":
       GeometricVectors();
       break;
      case "Lindenmayer systems":
       Lsystems();
       break;
      case "Artificial Life":
          AL();
       break;
      case "Projects":
          Projects();
       break;
      case "Litterature":
          Litterature();
       break;
      case "Disclaimer":
          Disclaimer();
       break;
      case "Site credits":
          Sitecredits();
       break;
      case "Newsletter & Rss":
          Rss();
       break;
      case "Blogging":
          Blogging();
       break;
       case "Plugins":
          Plugins();
       break;
      case "LINKS":
          LINKS();
    function Intro():void {
    targetClip.gotoAndStop(2);
    function DP():void {
    targetClip.gotoAndStop(3);
    function Tooling():void {
    targetClip.gotoAndStop(4);
    function MayaAPI():void {
    targetClip.gotoAndStop(5);
    function GeometricVectors():void {
    targetClip.gotoAndStop(6);
    function Lsystems():void {
    targetClip.gotoAndStop(7);
        function AL():void {
    targetClip.gotoAndStop(8);
    function Projects():void {
    targetClip.gotoAndStop(9);
    function Litterature():void {
    targetClip.gotoAndStop(10);
    function Disclaimer():void {
    targetClip.gotoAndStop(11);
    function Sitecredits():void {
    targetClip.gotoAndStop(12);
    function Rss():void {
    targetClip.gotoAndStop(13);
    function Blogging():void {
    targetClip.gotoAndStop(14);
    function Plugins():void {
    targetClip.gotoAndStop(15);
    function LINKS():void {
    targetClip.gotoAndStop(16);
    MovieClip(root).buttonTrace.htmlText="<a href=\'function:linkHandler,?????'>History</a>";
    [\A]

    as3 textfields have a TextEvent.LINK you can use.

  • Setting style for html tags in flex

    I need to add display:inline style property to <p>tag in flex CSS. Is there anyway to do like the below in flex
    p{ display:inline}
    Thanks in advance.

    Hi rizmysl,
    You cannot directly set the backgroundColor to a Label control however you can do it by getting a reference to the underlying TextField control inside the Label, for that you need to write some actionscript.
    Check out the below code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
         <mx:Style>
              .texfield{ width:300; height:30; background-color:red; fontWeight:bold;}
         </mx:Style>
         <mx:Script>
          <![CDATA[
           import mx.core.IUITextField;
           private function init():void
            //Getting reference to the underlying TextFiled control inside Label
            var tf:IUITextField = (myTextField.mx_internal::getTextField());
            tf.background = true;
            tf.backgroundColor = 0XFF0000;
            tf.width = 300;
            tf.height = 30;
          ]]>
         </mx:Script>
         <mx:Label x="25" y="113" text="My Sample Text Goes Here ...."  styleName="texfield" id="myTextField" />
    </mx:Application>
    Thanks,
    Bhasker Chari    

  • Search/replace function for Lightroom?

    I am trying to find out if there is a way of finding and replacing certain text in the metadata in a quick and easy way. I need to change something on all my photos in LR. Can anyone help me? Thanks a lot in advance.

    Rob,
    Thanks for response.
    I understand that Lightroom has a  SDK for plugins and this is a really good thing as it does allows others to tweak and enhance functionality without relying on Adobe. I have been a user of Lightroom  since the very first user trials and think it is a great product. I have watched it develop over the last 5 or 6 years.
    I do think it is more than just an image editor. Lightroom has always been promoted since day one as a new and better image database and workflow management tool. It is for this reason that question why Adobe has not closed some (I think) gaps in functionality consistent with Lightroom fullfilling its purpose as an Image library/Database management tool. It has certainly had the search capabilities included since day one of all metadata, consistent with a management tool.
    For the work I have been doing lately, Search and replace would be useful as I have been cleaning up metadata in various libraries. Hence while I agree it is not used every day, it would be a very useful maintenance tool.
    I thought I had posted this originally as a response to a similra request in the Lightroom Feature request forum, apparently not. I did try (today) to start a new feature request  but I was blocked from starting new threads in that sub-forum. Hopefully someone else with access to that forum will pick up on this and transfer the request to the Feature Request forum.

  • Scan_to_disk replacement function for nidaqmx.h

    Hello,
         We are upgrading an old card to a PCI NI 6224 or 6225.  The old project was developed in C++ and used the nidaq.h header.  The new development will also be done using C++. 
    1)  Is there any documentation on how to use the nidaqmx.h file in C++?  If you could point me to it that would be great.
    2)  Using C++ as our base, would it be possible to use two 6224 cards instead of the 6225?  Is it still possible to synchronize the cards?
    3)
    I need to replace the old function Scan_to_disk with something that
    will do the same thing in the nidaqmx driver.  Is this function still
    realisable?  Is there a procedure out there somewhere?
    Thanks

    Sparckis,
    To help answer your questions.....
    1)  Is there any documentation on how to use the nidaqmx.h file in C++?  If you could point me to it that would be great.
    Using NI-DAQmx in Text Based Programming Environments
    For further information about using the functions in the DAQmx API, please refer to the NI-DAQmx C Reference Help located in the Windows start menu:
    Start » Programs » National Instruments » NI-DAQ
    2)  Using C++ as our base, would it be possible to use two 6224 cards instead of the 6225?  Is it still possible to synchronize the cards?
    Yes, you can use two cards in C++, you will just have separate tasks for each as you would in any language.  They can be synchronized by use of a RTSI cable.
    3) I need to replace the old function Scan_to_disk with something that will do the same thing in the nidaqmx driver.  Is this function still realisable?  Is there a procedure out there somewhere?
    Old Forum on Issue
    What are the Terminology Changes in NI-DAQmx?
    Alex A.
    Applications Engineer

  • Disco 10G Custom Function for HTML Call to pass specific sheetid

    After learning that I cannot specify Disco 10G to open a particular worksheet in a workbook from a form menu launch (currently all I get is a listing of worksheets available in the workbook), I am told to create a custom function to handle this - instead of using OracleOASIS.RunDiscoverer.
    I have tried creating a custom function in our custom schema, but I only end up with an error page (Invalid Function) when I try to launch the report from the menu function. I even tried duplicating the Oracle OracleOASIS package and renaming it in APPS, only to receive the same results.
    Does anyone know the correct steps involved to create a new package for the HTML Call of a function in order to launch a Discoverer report?
    Thank you,
    Suzanne

    Hi Suzanne
    Here's a simple form that can be used to call Discoverer Plus:
    <br><br>
    <html><br>
    <form method="post" name="Login" action="http://myserver.com/discoverer/plus"> <br>
    Username: <input type="input" name="us" value="username"> <br>
    Password: <input type="input" name="pw" value="password"> <br>
    Database: <input type="input" name="db" value="database"> <br>
    EUL: <input type="input" name="eul" value="EUL"> <br>
    Workbook: <input type="input" name="opendbid" value="MY_AIRLINE"> <br>
    Worksheet: <input type="input" name="sheetid" value="222"> <br>
    <input type="submit" name="connect" value="Connect"><br>
    </form> <br>
    </html>
    <br><br>
    You will need to make sure you pass the correct username, password, database, eul, workbooks id (opendbid), and worksheet id (sheetid). Note that the EUL needs to be passed in uppercase and that the workbook id is case sensitive. You should also notice that this form displays the values in the form and allows the user to change them. After the user has entered their own values, they click the button called Connect.
    <br><br>
    A similar form for Viewer is as follows:
    <br><br>
    <html><br>
    <form method="post" name="Login" action="http://myserver.com/discoverer/viewer"> <br>
    <input type="hidden" name="us" value="username"> <br>
    <input type="hidden" name="pw" value="password"> <br>
    <input type="hidden" name="db" value="database"> <br>
    <input type="hidden" name="eul" value="EUL"> <br>
    <input type="hidden" name="wbk" value="MY_AIRLINE"> <br>
    <input type="hidden" name="wsk" value="222"> <br>
    <input type="submit" name="connect" value="Connect"><br>
    </form> <br>
    </html>
    <br><br>
    You will notice that for Viewer not only is there a different URL but the commands to pass the workbook and worksheet ids are different too. You should also notice that Viewer will execute the call without showing the values on the screen. All you will see is a button called Connect.
    <br><br>
    Does this help?<br><br>
    Regards<br><br>
    Michael

  • Replace function for CLOB

    I have CLOB column and want to do a select with a replace kind of function- replacing certain characters. E.g. if body is a CLOB field, I need
    select Clobreplace(body,'abcdef','123456') from t1;
    Does anyone have a function or equivalent to do this?
    Thanks

    There isn't one readymade. However, it would be relatively simple to write one yourself. You would need to iterate around the input clob doing the following:[list]
    [*]use DBMS_LOB.INSTR to locate occurances of the token;
    [*]use DBMS_LOB.SUBSTR to segment your input CLOB using the offset from the INSTR call;
    [*]write each segment appended with the replacement string to a temporary LOB;
    [*]return the temporary LOB
    [list]
    I suggest you have a play around with the logic of this using SQL SUBSTR and INSTR on a varchar2 string. Once you understand what you're doing you can introduce the complication of operating on a CLOB.
    Good luck, APC

  • Regex for HTML tags

    I would like to modify (enclose) the inner text of a td tag, such that:
    <td align="center">abc123</td> to become <td align="center">="abc123"</td>
    htmltext = htmtext.replaceAll("(<td\\b[^>]*>)(.*?)(</td>)", "$1=\"$2\"$3");That works, but I want to try the lookaround technique, as follows:
    htmltext = htmtext.replaceAll("(?=<td\\b[^>]*>)(.*?)(?<=</td>)", "=\"$1\"");but it yields ="<td align="center">abc123</td>"
    What would be the correct regex? Thanks.

    nguyenq87 wrote:
    Would you care to explain why the reluctant quantifier ? is omitted from (.*)?Note that "(.*?)" and "(.*)?" are tow different things! The first is a reluctant DOT-STAR. The latter means: "optionally match zero or more characters".
    nguyenq87 wrote:
    I thought without it, it would consume the closing tag also.It does, but then back tracks in favour of a match. It's safer to make the DOT-STAR reluctant instead of greedy. The greedy variant will match:
    "<td>foo</td> bbb <td>bar</td>" from a string like:
    "aaa <td>foo</td> bbb <td>bar</td> ccc" I assume you know it's rather tricky to parse HTML using regex... Just to name two issues: what about commented HTML? And what about td's that span more than one line?

Maybe you are looking for

  • Cloned drive reads as MS-DOS even though formatted as Mac OS Extended (Journaled)

    Question: How can I get my friend's MacBook 5,1 to properly boot from a cloned drive? I have a friend with a MacBook 5,1 and I'm trying to help her to install a new hard drive. I followed the instructions here using Apple Disk Utility to clone the ha

  • Problem with onSelect event for DropdownbyIndex in the IView

    Hello , I have an webdynpro for java application where I am using Dropdownby Index. I have associated onSelect event for the dropdown by index. When I launch the application in the standalone mode ( direct application launch) every thing works fine.

  • Oracle raise ORA-03113 when connect to a remote oracle server using toad

    Hi there, when i use the tool toad connect to a remote oracle server which located in a different city, when i submit a query in toad, if the query returns many rows of data, it will raise the error ORA-03113:end-of-file on communication channel, how

  • SharePoint "Change the Look" Only Shows a List

    Hi, I would like to change the look of my sharepoint 2013 site. When I click the gear->Change the Look. I get a screen that only shows the filenames of the different templates - no thumbnails or way to select a new template to apply to my site. I wou

  • Are U disappointed with speeds on your iPhone ?

    I ask because I have a Blackberry 9530 which is basically good for only talk and text.  Web speeds are very slow sometimes unuseable.  I'm looking to upgrade to a newer smartphone and the iPhone 4 I know would be a good option since I do a lot in Itu