HTML String Convertion .. Help please

Dear All ,
I have an application that convert any HTML input to another formula so the HTML will appear as it is ! for example :
- if the input is :
<B> HELLO </B>
- The stored in the database will be :
<B> HELLO </B>
My Question is how can i covert this output back to it's original status. (<B> HELLO </B>)
Please Help me
Regards,
Thanks

Java is case sensitive! string != String
If you meant:
java.lang.String
Then I'll be buggered if I know what your problem is .... it really should be working!?
In a worst case senario, create your own replaceAll method:
class myUtils
  public static String replaceAll( String str, String find, String replace )
    String result = "";
    if ( str == null || find == null || replace == null ) return result;
    for ( int i = 0, lastfind = 0; i < str.length; i++ )
      if ( str.subString(i).startsWith(find) )
        result += str.subString(lastfind,i) + replace;
        lastfind = i + find.length();
        i += find.length();
    return result;
}Something like that should do it .... that was written of the top of my head and not tested or compiled .... so no promises! :p

Similar Messages

  • Photoshop CS6 will not open raw files even after I downloaded a DNG converter help please!

    Photoshop CS6 will not open raw files even after I downloaded a DNG converter help please!

    We are pleased to announce the Adobe Camera Raw 8.7 RC is now live on Labs! See the links below.
    Technology pages:
    CC - http://labs.adobe.com/technologies/cameraraw8-7-cc/
    CS6 - http://labs.adobe.com/technologies/cameraraw8-7/
    Download pages:
    CC - http://labs.adobe.com/downloads/cameraraw8-7-cc.html
    CS6 - http://labs.adobe.com/downloads/cameraraw8-7.html

  • String Methods Help Please~```

    Hi, I have a question that goes like this:
    Write a Java class called KillWhiteSpace, which defines a main() method that asks the user to enter a String s, and displays a new String consisting of all the characters in s, but with the leading and trailing white space removed. In addition, every sequence of spaces within the String is reduced to one space only. You MUST NOT use any methods defined in the String class other than charAt() and length().
    So far, I wrote
    import java.until.Scanner;
    public class KillWhiteSpace{
    public static void main(String args[]){
    System.out.println("Please enter a bunch of texts");
    Scanner keyboard=new Scanner(System.in);
    String w=keyboard.nextLine();
    Now I know what charAt() and length() does but I don't know how to use it to satisfy the requirements above. Any helps?
    Edited by: Lillian_Cao on Oct 20, 2008 8:17 PM

    I don't want to give you too much since this is clearly an educational exercise, but to get you going, it looks like you you want to iterate over all the characters in the string, analyze each one, keeping track of previous characters and construct your new string as you go.
    Good luck and have fun.

  • String manipulation help please

    I need to write a Java program that will find the sum of the digits in a 7-digit integer. The input has to be taken by JOptionPane in 1 single integer variable.
    e.g if the input value was 4209632, my output should look like:
    Value = 4209632
    and the sum of each digits in 1 variable.
    Sum of digits = 26
    Please help. I need to use modulus function to do this but i dont know how to get all digits individually out of the single variable and add them together.

    Oh, i didn't notice that you want to use the modulus function...it's not necessary, but if you have to use it for some reason, than use the Integer class to help.
    Use the static methord parseInt(String s) of the Integer class to get an int value of a string. parseInt return an int with the integer value of the string s.
    Here is the syntax:
    int intValue = Integer.parseInt(numericString);

  • VIDEORA IPOD CONVERTER HELP PLEASE!!!!!!!

    i have two issues with this program:
    1. i go to one-click transcode, select my files, they're done in 2 seconds but don't appear saved or in the program file when i go to itunes
    2. i select the files as above and it just says "starting job...please wait" forever. literally. it just doesn't do anything.
    i would appreciate straightforward answers instead of hunting for them like i've had to do in other people's posts.

    If your "converting...please wait" is still there after the bar says 100% then check the seconds converted.
    a 2 hour video will be about 7200 seconds
    if its anything well below that then the bar is just malfunctioning and you will have to wait until it hits about 7000 seconds and then it will say conversion complete, and it really will be done then.
    Hope that helps

  • Ipod dvd converter help please

    ive tried several ipod converter programmes, but none have been any good, they just wont work.
    please can someone or people give me a name of a free, fast and reliable dvd converter.
    that'd be very much apprieciated
    thanks
    x x x x

    free, fast and reliable dvd converter
    For Windows users.. no such product exists in my opinion.
    If you want free software... it is rarely fast and reliable.
    If you want something fast and reliable, which should be more important to you than being free, then you may want to consider investing in software that actually works.
    PQ DVD seems to be popular for Windows users, as well as ImTOO.
    Many other titles have been mentioned in this forum. Your question gets asked, and answered, a lot.
    Here are some search results for you to review. There's great information contained in these previous posts.
    Search Results for 'dvd to ipod windows'.

  • [JS - CS3]  Can't REPLACE A with B within a string? Help Please...

    Hello Experts,
    First off - I'm a newbee to all this JS and especially with CS3.
    I have a string: '
    b myDocumentName
    which can have it's value as: '
    b 00000en_ Generator WX/WY
    Problem is, backshlashes ( / )are a bad thing for me...
    b Question:
    How can I do a 'replace' operation to replace the '/' from the string with a '_'?
    I have at the moment:
    > var myDocSaveName = oneResult[3]+oneResult[4]+oneResult[5];
    > myDocSaveName.replace(what "/", with "");
    > myDoc.save ("C:/DATA/"+myDocSaveName, undefined, undefined, true)
    I get an error Nr. 25... Offending text:"/"
    What am I doing wrong?

    'what' and 'with' are the names of those arguments. They should not be included in the statement:
    myDocSaveName.replace("/", "");
    But that still won't work because replace doesn't operate on a string in situ, it returns the modified string. So:
    myDocSaveName = myDocSaveName.replace("/", "");
    This too has its limitations. It'll change only the first instance of "/", not all of them. To change all of them, you need to restate the 'what' as a RegExp:
    myDocSaveName = myDocSaveName.replace(/\//g, "_");
    A RegExp literal is delimited by the "/" character, so to have it, alone, as the character to be sought you must use the backslash to escape the character. Then, to indicate you want the replace to happen globally within the string, you add the 'g' after the RegExp.
    Dave

  • Help please. Extended display won't work on MBP and AOC 20" 1600 x 900  60HZ monitor. Mirror display does. I've a mini dvd to vga converter cable. Should this work?

    Help please. Extended display won't work on MBP and AOC 20" 1600 x 900  60HZ monitor. Mirror display does. I've a mini dvd to vga converter cable. Should this work?

    I have the same mini display port adapter and Belkin DVI-HDMI cable (but a Panasonic 42" Plasma HDTV) so just set this up on it to see if I could duplicate your problem, unfortunately for you (but good for me) I can't.
    I connected the adapter+HDMI cable before switching the HDTV on and then powered up the MBP. It (the HDTV) came up with my background right away (it's set at Mirror not extended Desktop) and when I run System Preferences/Displays get the following. Sorry but all I can confirm is that adapter+cable combination should work ...
    Try doing a Parameter RAM reset - hold down command/option/p/r keys at start up and wait for three chimes before releasing the keys?

  • Adobe DNG converter has frozen, help please x

    Can anyone help, my Adobe DNG converter has frozen and wont work, I have uninstalled it and updated to the latest one, now I cant find the updated one on my computer as it wont show up under search, and the other one has frozen and wont work..... Help please as I now cant edit any photos!!!!!

    I'm having A very Similar program with DNG Converter 8.4 and 8.6! The Program was working fine until 2 weeks ago, now when I open the software, it doesn't load completely and when I click the application window up, all of the information fields are clear, showing the desktop through the window. Anyone else no what to do about this? I'm running Windows 8.1

  • Hi, Im trying to convert a PDF into a weblink that I can post onto social media  but dont know how, can you help please?

    Hi, Im trying to convert a PDF into a weblink that I can post onto social media  but dont know how, can you help please?

    You need to upload it to some kind of public server, or file-sharing site (like Google Drive, Dropbox, etc.), and then post the link to it.

  • My brand new MBP 13"got the error "there is not enough memory or disk space to convert this document". What gives? Help please!

    I am trying to use mail merge in Word for Mac on My brand new MBP 13". And I get the error "there is not enough memory or disk space to convert this document". What gives? Help please!

    Why do I get there is not enough memory...: Apple Support Communities
    Error message in MS Word opening a .docx file "There is not enough - Microsoft Community

  • Converting Itunes Purchased Music HELP PLEASE??

    So i bought a new music device. archos if it matters but i cant put any of my purchased music onto it because it is all Protected DRM or something of that nature. anyone know how to convert it to mp3 format? many programs only convert a few minutes and i dont wanna spend 50 bucks on a program for a one time thing. i find it frustrating that my over 300 purchased songs are now useless to me. HELP PLEASE?

    mustangmaster200 wrote:
    i find it frustrating that my over 300 purchased songs are now useless to me. HELP PLEASE?
    You have two options: (1) You can use iTunes to burn the tracks onto *audio CD,* which can be used just like any other *audio CD.* (2) You can upgrade the songs to non-DRM "iTunes Plus" versions for 30 cents apiece.

  • HTML Editing - WYSIWYG? - Please Help!

    After speaking with an Adobe sales rep, I purchased Contribute to edit template fields in my Yahoo Store.  I need a product where I can write text with simple format edits (bold, color, italics) and then convert it to html.  I simply will copy my html into my yahoo store fields.  I used to use FrontPage for this purpose, but it is no longer made.  Dreamweaver is unnecessary for what I am trying to do.
    In reverse, I sometimes edit html and would like to see the edited version.  Therefore, I would like to copy html from my Yahoo Store, place it into Contribute, and view (WYSIWYG).
    I am having trouble doing both above.  I can write text into Contribute, but then must view it in a browser, view the source, then copy and paste into my Yahoo Store template - too many steps.  And, I still have not figured out how to paste html code into Contribute and view (WYSIWYG).
    For such a simple task I am looking to do, I can't fi - nd a simple software program.  I thought Contribute would be the answer.  I'm not sure it will do what appears to be so simple?  Any suggestions would be appreciated.  Thanks.

    Contribute is used for WYSIWYG editing. You can also insert code insert the webpage created in Contribute using, Insert-->HTML Snippet option. Please refer to http://blogs.adobe.com/contribute/2009/06/are_you_a_power_user_try_using.html .

  • Why when i'm watching at youtube the videos keep going down. or sometimes it says it "html" can someone help me please?

    why when i'm watching at youtube the videos keep going down. or sometimes it says it "html" can someone help me please?

    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click: Remove All Website Data
    Now open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select: Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video. If that didn't help, click: Request HTML Player here > YouTube

  • Hi just converted avi file to mp4 the film will play but there is no sound help please

    hi
       Just converted avi file to mp4 the film will play but there is no sound help please.
    Thanking you

    First repair your QuickTime from Control Panel and see if it helps.
    If not, refer to this article to troubleshoot:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/TS1718
    iTunes and QuickTime for Windows: Audio does not play or plays incorrectly
    http://support.apple.com/kb/TS1362

Maybe you are looking for

  • Optimized subsampling: bug and workaround

    (CS3 and CS5. Mac). InDesign appears to have some really bad defaults for the printer internals of "Send Data: Optimized subsampling" in the Graphics pane of the print dialog. We moved from an HP 8150DN to a Xerox Phaser 7500DX. On the Xerox, 1bpp im

  • Is my Video Card/Display going bad??

    My display has 30-50 vertical columns, from top to bottom, across the screen. Within each column, are numerous vertical lines, like bar codes, that are pink in color. This situation happens at start up before any applications are opened. The computer

  • Issue on System Copy

    Dear Guru, We are doing system copy of DEV to QAS, facing issue on Start instance phase. Error msg : Connect to message server (hostname/3900) failed: NIECONN_REFUSED ABAP processes of instance SID/DVEBMGS00 [ABAP: MSNOTRUNNING] did not start after 1

  • How to read a current line in table control in dialoug program ?

    How to read a current line in table control in dialoug program ? this code required to provide F4 help.

  • Merging two large scans

    i am trying to merge a set of "two-sided" scans of roughly 100+ pages which i now have of a "front" and "back" side for. Basically I am going to have a pdf of each of these and I am going to keep the images in two folders as well. aside from the fact