Great! And if you need any PHP help, feel free to email me directly! I know it better than I do javascript ;)
cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: Frederik Ring <frederik.r...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Date: 02/18/2009 08:28 AM Subject: [jQuery] Re: Auto-Replacing HTML-entities Perfect! I'm not exactly good at PHP, so I didn't know about that, but it seems to be exactly what I am looking for! Thanks! On Feb 18, 2:19 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote: > Since you're saving it with php why not just use the php functions that do > the same? > > http://us3.php.net/htmlentities > > cheers > > Michael Lawson > Content Tools Developer, Global Solutions, ibm.com > Phone: 1-919-517-1568 Tieline: 255-1568 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: Frederik Ring <frederik.r...@gmail.com> > > To: "jQuery (English)" <jquery-en@googlegroups.com> > > Date: 02/18/2009 08:14 AM > > Subject: [jQuery] Auto-Replacing HTML-entities > > Hello! > > I have setup a simple editor site for a image gallery where the user > can visually edit (sort entries, add entries, edit captions) the HTML > of a <ul>. When finished the content gets saved via PHP. Is there a > simple way to have special characters in image captions converted into > HTML entities? > > The way I read the then transmitted <ul> is: > > var html = $('#container').html(); > $('#textfield').text('html'); > > The content of the #textfield is then written into a new HTML file. Is > there a jQuery-way to do it or would I have to use a RegExp? > > Thanks! > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
<<inline: graycol.gif>>
<<inline: ecblank.gif>>