douling0053 2017-06-10 09:40
浏览 102
已采纳

输入值中有多个双引号

I want to ask if it is possible to add multiple double quotes to the input value, like this:

<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>"

So, the whole <iframe> element is wrapped within double quotes, just as the value of the src attribute (the URL), but the URL will not be included in value.

Can this be achieved?

  • 写回答

1条回答 默认 最新

  • dongzan9069 2017-06-10 09:53
    关注

    You can try escaping double quotation with backslash..... For more info visit How to properly escape quotes inside html attributes?

    <input value= "<iframe src=&quot;http://xxx.xx/embed?t=<?php the_title(); ?>&quot; 
    width=&quot;640&quot; height=&quot;360&quot;
    allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;
    scrolling=&quot;no&quot; frameborder=&quot;0&quot;></iframe>"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办