Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7420581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:15:49+00:00 2026-05-29T08:15:49+00:00

Is there any way to setup Firefox and Chrome to work with escape=false attribute

  • 0

Is there any way to setup Firefox and Chrome to work with escape=false attribute in h:outputText tag. When there is some html that needs to be shown in the browser, Firefox and Chrome show parsed string correctly, but any other links in application are freezed (??).

The example html from db:

<HEAD>
<BASE href="http://"><META content="text/html; charset=utf-8" http-equiv=Content-Type>          
<LINK rel=stylesheet type=text/css href=""><META name=GENERATOR content="MSHTML 9.00.8112.16434">
</HEAD>
<BODY><FONT color=#000000 size=2 face="Segoe UI">läuft nicht</FONT></BODY>

Parsed HTML on the page:

läuft nicht

What is very weird, is that in IE everything works (usually it is opposite).

I use primefaces components (v2.2), .xhtml, tomcat 7 and JSF 2.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:15:49+00:00Added an answer on May 29, 2026 at 8:15 am

    You end up with syntactically invalid HTML this way:

    <html>
        <head></head>
        <body>
            <head></head>
            <body>...</body>
        </body>
    </html>
    

    This is not right. There can be only one <head> and <body>. The browsers will behave unspecified. You need to remove the entire <head> and the wrapping <body> from that HTML so that you end up with only

    <FONT color=#000000 size=2 face="Segoe UI">läuft nicht</FONT>
    

    You’d need to either update the DB to remove unnecessary HTML, or to use Jsoup to parse this piece out on a per-request basis something like as follows:

    String bodyContent = Jsoup.parse(htmlFromDB).body().html();
    // ...
    

    Alternatively, you could also display it inside a HTML <iframe> instead with help of a servlet. E.g.

    <iframe src="htmlFromDBServlet?id=123"></iframe>
    

    Unrelated to the concrete problem:

    1. Storing HTML in a DB is a terrible design.
    2. If the HTML originates from user-controlled input, you’ve a huge XSS attack hole this way.
    3. The <font> tag is deprecated since 1998.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way how to run the setup.exe bootstrapper generated by VS2008 with
Is there any way to apply an attribute to a model file in ASP.NET
Is there any way to have something that looks just like a file on
Is there any way to to setup Rails generating files with tabs instead spaces?
Is there any way to remove header and footer of a html page, so
Is there any way to setup my SSH client or my GNOME terminal or
Is there any way to setup MySQL to every time a row is changed,
Is there any way to setup RhinoMocks expectation without caring about return value? Something
Is there any way to send HTTP request using (pure) Inno Setup? isxdl.dll isn't
Is there any way to compile the Nullsoft Installer Script (NSI) setup as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.