Results 1 to 5 of 5
  1. #1
    masterrs.mind is offline Member
    Join Date
    Feb 2010
    Posts
    20
    Rep Power
    0

    Exclamation How to convert the html into lowe case

    Hi All,

    The existing content(html tags) of old CMS is in all Uppercase.Is there any way(using a Regex) to convert all the html tags into lower case.

    Here is a sample html:

    <P>welcome to the maon page.</P>
    <P><STRONG>First page</STRONG> </P>
    <P>blah blah blah.........<IMG src=""[ioID]D86F7229C19F473F8ED2111232082574/new-1.gif"">blah blah blah....<IMG src=""[ioID]DACAB502460D48DC9560BB7CDD9F0C94/faa_horiz_dotlines.gif"">
    <P></P></DIV>
    <P><IMG src=""[ioID]D86F7229C19F473F8ED2111232082574/new-1.gif"">&nbsp;blah blah xyz......<A href=""[ioID]ECAA8A748CF74324B2665903EE168199"">some text</A> of the e-Library.</P>

    Thanks,
    Ramya.

  2. #2
    masterrs.mind is offline Member
    Join Date
    Feb 2010
    Posts
    20
    Rep Power
    0

    Default

    I want only the html tags must be converted into lower case but not the text within the tags.
    So .tolowercase() is not an option for me

    Thanks,
    Ramya.

  3. #3
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

  4. #4
    masterrs.mind is offline Member
    Join Date
    Feb 2010
    Posts
    20
    Rep Power
    0

    Default

    FON,

    Thanks.But I am using Jericho praser instead.

    Thanks,
    Ramya.

  5. #5
    masterrs.mind is offline Member
    Join Date
    Feb 2010
    Posts
    20
    Rep Power
    0

    Default

    Can some one please reply?I am using Jericho parser,there is a class

    HTMLSanitiser.java

    which is used to remove unwanted markup <html> tags and convert into lower case.

    I am not sure how to proceed on this case.If some one have a better approach,please let me know.

    Please let me know if you need any other information

    Thanks.

Similar Threads

  1. How to convert a String to upper case
    By Valeriano in forum New To Java
    Replies: 16
    Last Post: 03-01-2010, 12:39 PM
  2. Replies: 1
    Last Post: 02-18-2010, 05:43 PM
  3. Convert xml to html using ant build
    By ketvaid1 in forum XML
    Replies: 1
    Last Post: 01-19-2010, 03:25 AM
  4. convert html page to pdf
    By MarkWilson in forum Advanced Java
    Replies: 2
    Last Post: 09-02-2008, 11:14 PM
  5. convert html to plain text
    By vissu007 in forum New To Java
    Replies: 3
    Last Post: 07-07-2007, 02:39 PM

Posting Permissions

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