Escape HTML for Page Title

Hi,
We created a custom TLN.
I would like to produce href tags but I face the problem of escaping HTML characters :
<aa on_click="return EPCM.doNavigate('<%= currNavNode.getName()%>',0,'','null',1,'<%= *StringEscapeUtils.escapeHtml(*currNavNode2.getTitle(userLocale))%>','')" href="#"><%=currNavNode2.getTitle(userLocale)%></aa>
The problem is that the org.apache.commons.lang.StringEscapeUtils is not available (or I do not know how to make it available...).
How do you proceed for escaping :
- HTML
- URL
- Javascript
Thanks in advance for your help.
Best regards,
Guillaume

Hi,
After many tries, I found out that simply quotes and double-quotes is enough for the Javascript EPCM.doNavigate to work (almost) properly.
Here is the code I use in the toplevelnavigation.jsp :
<% String titlePage    = "";
   String escTitlePage = "";
   titlePage    = currNavNode2.getTitle(userLocale);
   escTitlePage = titlePage;
   escTitlePage = escTitlePage.replaceAll("\'","\\\\\'");
   escTitlePage = escTitlePage.replaceAll("\"","\\\\\"");
   //escTitlePage = escTitlePage.replaceAll("\\&amp;","\\&");
   //escTitlePage = escTitlePage.replaceAll("\\&amp;","\\%26");                             
%>
<a <%=level2Id%> oncclick="return EPCM.doNavigate('<%= currNavNode2.getName()%>',0,'','null',1,'<%= escTitlePage %>','')" href="#"><%= titlePage %></a>
The last problem I have is with '&'. Whatever escaping I try, I have a truncated string in the page title at position of the '&'...
Any idea ?
Thanks in advance.
Best regards,
Guillaume

Similar Messages

  • Escaping html for dynamic javascript

    Hi Folks,
    Can anyone please tell me how I escape html for use in a  function?
    Here is my code:
    onMouseover="ddrivetip('#jobdescription#','white', 300)";
    Thanks in advance

    Hi there
    What is it you're trying to escape exactly? Do you mean you want the literal # signs to go in? If that's the case then use a double hash ## - Coldfusion will render a single one to the browser.
    If that's not what you mean then some more info may be required
    O.

  • Bugreport: copy Page escapes & to & in Page Title and Name

    APEX 4.2.1
    When copying a Page within an application its Page Title and Page Name gets escaped. That means if you are using something like '&' within the Page Title/Name it gets escaped to '&amp;'
    brgds,
    Peter
    get Syntax Highlighting for the Application Builder: http://apex.oracle.com/pls/apex/f?p=APEX_DEVELOPER_ADDON:ABOUT:0:::::
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at and http://www.wirsindapex.at
    Fantastic Plugins for APEX: http://www.tryfoexnow.com

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • Changing Page Title

    I would like to change the Title for my site. It seems that the only title you can have is the Domain name as far as I can tell using Iweb 08. Does anyone know how to change the main Title line of the site.
    Thanks

    The problem is when you host uses frame to forward to your .mac site, your .mac page title will not show up on title bar, the frame title will (aka mask forwarding).
    You can ask your host to do regular forwarding, your page title will show; but address bar will show http://web.mac.com/blahblahblah
    or you can add this to your page, using HTML Snippet and use your host mask forwarding:
    <script type='text/javascript'>
    parent.parent.document.title = parent.document.title;
    </script>
    BTW, you have to add it to EVERY page, here is an example:
    http://hdl.50webs.com/BkgndMusic/Welcome.html
    the page title is either Major or Minor regardless the address bar is: blahblahblah/Welcome.html

  • NW2004s: Styles of Page Title bar

    Hello,
    we are in the progress of upgrading our portal to NW2004s (SPS08).
    The pagetitlebar (or pagetoolbar) now has a top border (dark blue in the default theme).
    We want to get rid of that border so I was looking for a style in the theme editor.
    According to <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=41&threadID=33223&messageID=318072">this forum thread</a> it is possible to change the background color.
    I've not found any style for the new top border.
    Any information on that one?
    Thanks & regards,
    Alex

    Hi Tatayya,
    Why don't you try to customize your portal theme? I guess you will find appropriate section for page title bar iView in the theme editor where you should be able to change the background color for it.
    Here you'll find more information about changing style parameters for the portal theme:
    [Working with Portal Themes|http://help.sap.com/saphelp_nw70/helpdata/EN/1a/d7c1617dd29e4d85064b467636fada/frameset.htm]
    Best Regards,
    Michal M.

  • Change HTML page title in Oracle Waveset 8.1.1

    Hi,
    Does anyone know which file/page to override if I want to change the HTML page title for Oracle Waveset?
    After the upgrade the title on every page is: "Waveset".
    This is what I would like to do:
    - Set the title to "Identity Manager Administration" on all pages under /idm (Admin pages)
    - Set the title to "Identity Manager User Pages" on all pages under /idm/user/
    Thanks for your help.
    Regards,
    Henrik

    Thank you,
    This was what I was looking for:
    http://download.oracle.com/docs/cd/E19225-01/821-0093/ahuhd/index.html#6nl5vc1ja
    It seems like the title change is only visible when the user is logged in.
    To override the title always, you can override this file and set the your title:
    WSHOME/includes/setStyleSheetsAndTitle.jsp
    Regards,
    Henrik

  • Is there any way to have the page title NOT be the name of the HTML file

    You might want a page title to be say "Digital Media Academy." You don't however really want the html file to be called "Digital%20Media%20Academy.html" Windows web browsers often have problem opening pages with spaces in the file name. On the other hand you don't really want the page title to be "DigitalMediaAcademy" because that looks kind of dumb. Any way around this.

    The page is already not included in the nav bar, but
    where do you set the page name to be different from
    the file name? How can I set the name of the page,
    such as the name of this page is "Apple - Support -
    Discussions - Post Message:Reply," to be different
    from the file name?
    I think I probably misunderstood your question. You want the html "title," which appears at the top of a browser, to be independent of the name of the html file, right? I don't think that is possible in this version without manually editing the html after publishing. iWeb uses the page name given in the inspector for both the navigation bar link and the file name, replacing spaces by %20 in the latter because web servers don't allow spaces in file names.

  • Change the Page Title for all the pages when viewing the Reports in Bi Publisher

    Hello ,
    I have a requirement for changing the Page Title for all the report displayed pages on the browser window.

    As far as I know, answer is NO.
    it's very simple answer  Manikandan-S-Oracle
    for 1210326 's requirements there are some places for changes of property "title" and in some pages "title" can be different
    "one place or option for changing" does not exist imho ( may be i'm wrong )
    so you can change places for your needs but not sure what it's adequate
    as example
    ...wls\user_projects\applications\bipdomain\xmlpserver\catalog\navigator.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/catalog
    ... wls\user_projects\applications\bipdomain\xmlpserver\home\home.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/home

  • An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery or directly typing its URL

    I apply theme before singing all users into application ,now  visitor/member are not affected color text so we are reapplying themes 
    I am not able to reapplying SPColor /my site Host template "  An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery
    or directly typing its URL" while applying theme i am getting error
     

    is it your public site/ community site or team site?
    what level of subscription you have?i would say try to delete the site and try to create a new.
    http://community.office365.com/en-us/forums/154/t/147705.aspx
    are you able to open the site in the sharepoint designer?
    or try to send them the private message to the support team.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • ITunes Looking for the "Title" of my iWeb Podcast Page/URL???

    have created a podcast page in iWeb and tried to Submit to iTunes and now it asks for the Title of the Podcast???
    Have filled in as many of the page names, file names as I think is possible and still get this message.
    Any help would be appreciated.
    Would be great if they had a link on the iTunes submit page that would tell us what to do on iWeb.

    You are making your podcast in WordPress and submitting it to Feedburner to pass on to the Store. If you want to change the title you have to do this in WordPress: however it looks as if Feedburner generates the feed filename from the title:
    http://feeds.feedburner.com/TheInconvenientTruthFileInPodcastTheInconvenientTrut hExploringTheFactsBehindTheFictions
    so if you change the title you will likely change the URL and iTunes will lose contact with the feed. I don't know whether it will do this (logically it shouldn't) but you would have to find that out from their Help (if any). Otherwise you can only try it and if the feed URL does change, change the title back.
    As you don't have direct access to the Feedburner feed, then if Feedburner changes the URL you will not be able to add the redirection tag necessary to change iTunes to a different feed - so it's possible you may be stuck with what you've got.

  • Page Titles in Web Apps for SEO not possible?

    I was surprised to find that you cannot control the page title of a web app item.
    For example:
    http://tinyurl.com/7qc76gg
    The page title is just "Brazil" and there's no way to control it? Ideally we'd want something like this for SEO reason.
    Business Name - Destinations - Brazil

    You could place the SEO Title in the field "Item Name" and then if you would like a different title for the entry, you can create a custom field.
    Carol - BCGurus.com - http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Html for escape

    hey does anyone know a short html for the computer to
    simulate the escape command on the computer?

    i have a slideshow using xml that i set up with a program
    that autoruns and full screens the html. to get out the user must
    press the escape button.
    i have a buttonthats set up ready to be linked to something
    to do this but the client needs for there to be an exit button.
    please let me know of a way or another to accomplish
    this.

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Set page title for all pages

    Hi
    Can I set page title for all pages in project, by using filter or something else? Or the only way is to specify the name in each page?
    Michal

    Might be possible with filters, but that would be a rather expensive task. Just create an include file which you include in all pages. This way you also have a single point of maintenance.

  • Page title variables for master pages in muse?

    I'm new to muse and I cant seem to find an option for variables page titles like there is in Indesign.  I have a navigation bar and I would like it to show the current page title in a speific spot of that section.  Am I over looking this feature?

    This is what I was after.  I want to beable to do page titles in the view it self.  I do large prototypes/mockups in muse.
    Typically in a website you'll have a page title in the top left corner.  If I have a 20 page design putting in those titles can become tidious

Maybe you are looking for

  • Startup Disk full notification

    I know there is a posted discussion of this, but I haven't been able to find it. Please advise: I get Startup Disk is full, you need to free up space by deleting files. I deleted all files on the desktop that would have been visible upon startup, and

  • Can't connect to pinterest on Mac - 404 and 403 errors

    Hello all and thanks in advance for any help! Our iMac can't connect suddenly to pinterest.com only.  It connects to all other sites just fine and up until about 5 days ago, connected to pinterest fine too.  None of the browsers connect to it, and al

  • Update XML files with a PHP form...

    Hi, I would like to know if its possible to update or insert data to XML files from a PHP form? And how can I do it? Basically i want to create a backoffice for my XML Flash slide show. Can anyone help me?

  • Redgiant Universe 1.3 effects load into Premiere Pro CC 2014 but don't appear in FX list

    Anyone else having this problem? Until yesterday I had the RedGiant Universe plugins working happily in CC2014 as a trial, but then I upgraded to a paid version. The plugins in my edit were still applied but no longer functioned. So I did what I thou

  • Canon Lenses...

    Okay, so here's what I'd like to know.  I'd like to get myself a VERY nice Canon camera, and I guess what I'm wondering is this... My mother has a Canon Rebel 35mm camera, and has extra lenses...  If I were to get a Canon Rebel camera, would her lens