0
我想詢問是否可以將多個雙引號添加到輸入值,就像這樣:多雙引號
<input value= "<iframe src="http://xxx.xx/embed?t=<?php the_title(); ?>"
width='640' height='360'
allowscriptaccess='always' allowfullscreen='true'
scrolling='no' frameborder='0'></iframe>"
所以,整個元素雙引號內包裹着,就像src
屬性(URL)的值,但URL不會包含在值中。
這可以實現嗎?
[在PHP轉義引號(可能的重複https://stackoverflow.com/questions/ 7999148/escape-quotation-marks-in-php) – ShiraNai7
它不重複,我有html值不是php,它不適用於html –
爲什麼你用[php]標記你的問題呢? – ShiraNai7