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 6530373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:44:51+00:00 2026-05-25T09:44:51+00:00

I have a RowExpander defined like this : var expander = new Ext.ux.grid.RowExpander({ id:

  • 0

I have a RowExpander defined like this :

var expander = new Ext.ux.grid.RowExpander({
    id: 'expander',
    tpl : new Ext.Template(
        '<pre style="word-wrap:break-word;"><p>{bigText}</p></pre>'
    )
});

bigText is returned from server and contains a full html document with all the html tags. For some reason tpl cannot interpret these tags proeprly and the final formatting on the page is messed up(too much spacing between pharagraphs for example).

What is a good way to go about solving this?

EDIT: This is the content returned from server: (Please pardon the poor formatting…)
“bigText”:”\n\n\n \n\n.header {\n\tcolor: black;\n\tfont-family: Arial, Helvetica, Sans-Serif;\n\tfont-size: 10pt\n }\n\n.footer {\n\tcolor:black;\n\tfont-family: Arial, Helvetica, Sans-Serif;\n\tfont-size: 10pt;\n\tfont-style: italic;\n }\n \n .body-header {\n\tcolor: black;\n\tfont-family: Arial, Helvetica, Sans-Serif;\n\tfont-size: 10pt;\n\tfont-weight: bold;\n }\n .body-content {\n\tcolor: black;\n\tfont-family: Arial, Helvetica, Sans-Serif;\n\tfont-size: 10pt;\t\n }\n</style>\n\n</head>\n\n\n\nThis is to notify you that you have an account balance that is greater than or below the threshold viewable on Online Banking for Business. The requested details appear below.
\n\n</p>\n \n\n Account Number: </span> xxxxxxx </span>
\n\n Balance Amount: </span> 100 </span>
\n\n\n
\n\n\n\nThis e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please report to xxx@xx.com or call 1-xxx-xxx-xxxx, and please delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.
\n\n</p>\n \n\n\nAlert initiated: 06-Sep-2011 at 2:10PM Canada Eastern Time
\n</p>\n \n\n</body>\n</HTML>\n”

  • 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-25T09:44:51+00:00Added an answer on May 25, 2026 at 9:44 am

    If bigText really contains the full HTML document with <html>, <head>, <title> etc then you better extract only the body part from it.

    Additionally it doesn’t make sense to wrap it all inside a <pre> tag. Why are you doing that?

    If you really want to preserve all the formatting of the HTML page as is, maybe you should use an <iframe> instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Grid with rowexpander. with this I am able to expand the row,
Have converted devise new session from erb to Haml but doens't work, this is
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
Have some code: using (var ctx = new testDataContext()) { var options = new
I use Extjs 4. I have grid within row expander with data from the
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
Have you managed to get Aptana Studio debugging to work? I tried following this,
Have a look at this url: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#column_chooser I have got the Column Chooser dialog
have Googled the cr*p out of this one so apologies if the answer is
have some headers like: HTTP/1.1 100 Continue HTTP/1.1 302 Found HTTP/1.1 200 OK HTTP/1.1

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.