SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Columbus, OH, USA
    Posts
    689
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing HTML formatting from JTextPane.GetText ()

    Any chance you're doing a VerifyProperties or VerifyEverything on the HTMLText? If so, you may try just doing a simple Verify against Object.HTMLText.GetText() (which returns only the text content).

    For example:
    [ ] Verify (Browser.Foo.Foo.HtmlText.GetText(), "Expected Text")

    Just an idea...


    [This message has been edited by Damian Synadinos (edited 04-05-2000).]

  2. #2
    Junior Member
    Join Date
    Oct 1999
    Location
    Hillsboro, or USA
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing HTML formatting from JTextPane.GetText ()

    Thanks for your reply.

    Unfortunately this is a stand alone java application. I'm not viewing the
    text through a browser.

    The object is a JavaJFCTextField, and the HtmlText is not defined for this object.

    I'll bet I'm missing a big picture here.

    Thanks

  3. #3
    Junior Member
    Join Date
    Oct 1999
    Location
    Hillsboro, or USA
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing HTML formatting from JTextPane.GetText ()

    Hi,
    I am testing a Java Application which displays HTML formatted text in JTextPanes.

    For reasons unknown to me, the order of the HTML formatting changes between sessions of Java. Sometimes bold will be before font, and othertimes font will be before bold. This makes verification difficult.

    I would like to be able to verify the content of the text, without having the
    html formatting get in the way. At this time
    I do not really care about the html formatting and would like to just strip away all of it, allowing me to verify just the text.

    Any suggestions?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:47 AM.

Copyright BetaSoft Inc.