0

代替テキストにスラッシュを追加する方法。問題は、不要な一重引用符です。

text is -> alt='開梱後の Isaac Sutton のコレクションからの追加絵画の写真'

-> alt='開梱後の Isaac Sutton\'s コレクションからの追加絵画の写真'

<img width='318' height='238' alt='Photo od additional paintings from Isaac Sutton's     collection after unpacking' src='[!--$wcmUrl('resource','groups/public/documents/image/kppcont_083705.jpg')--]' title='Additional paintings from Isaac Sutton's collection after unpacking' />
4

4 に答える 4

0
<?php
$alt=htmlentities("Photo od additional paintings from Isaac Sutton's collection after unpacking");
?>
<img src="aamra24_ahmed_shafi1.jpg" width="473" height="347" alt="<?=$alt?>" />
<img width='318' height='238' alt='<?=$alt?>' src='[!--$wcmUrl('resource','groups/public/documents/image/kppcont_083705.jpg')--]' title='<?=$alt?>' />
于 2013-11-25T16:12:56.957 に答える