Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #10540
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="ISO-8859-1" |
| Message-ID | <1934714.aqSPkdTlGX@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Tue, 24 Jan 2012 17:32:02 +0100 |
| User-Agent | KNode/4.4.11 |
| Content-Transfer-Encoding | 7Bit |
| Subject | Re: Unterminated String constant error |
| Newsgroups | comp.lang.javascript |
| References | <db47ff6a-ac18-4549-b606-6916cf338c90@i18g2000yqf.googlegroups.com> <4f1e7b4f$0$6880$e4fe514c@news2.news.xs4all.nl> |
| Followup-To | comp.lang.javascript |
| MIME-Version | 1.0 |
| Lines | 30 |
| NNTP-Posting-Date | 24 Jan 2012 17:32:04 CET |
| NNTP-Posting-Host | 9aed9d46.newsspool2.arcor-online.net |
| X-Trace | DXC=kg4FJBM@GB9_A0jCfgHO6>A9EHlD;3Yc24Fo<]lROoR18kF<OcfhCO;L5NU2=\P19:DZm8W4\YJN<;?f@h5gMfb<2UGAQ<03n76m8DKVmk7YF1 |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:10540 |
Followups directed to: comp.lang.javascript
Show key headers only | View raw
Erwin Moller wrote:
> If you want the title of that <td> to hold information from the database
> you should do something like this:
> [PHP example]
>
> <td title="<?php echo $myTitle; ?>">...</td>
>
> Mind the "".
> Also make sure $myTitle is appropriately escaped.
Like
<?php echo htmlspecialchars($myTitle, ENT_COMPAT, $encoding); ?>
> When the raw data for title contains "
or `<' and `&'.
> you get into trouble when you don't escape.
ACK.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Unterminated String constant error Bhushan Kakulte <b.kakulte@gmail.com> - 2012-01-23 23:18 -0800
Re: Unterminated String constant error Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-01-24 10:35 +0100
Re: Unterminated String constant error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-24 17:32 +0100
csiph-web