<a href>标记内的换行符

时间:2019-11-14 10:51:34

标签: html wordpress line-breaks magnific-popup

情况很少。我正在使用Wordpress Magnific弹出插件,它从媒体库中拍摄图片。在图片上,我有一个标题,alt和一些标题,当我在页面上输入它时,  在灯箱外部,我会在检查代码时得到此代码。问题是我无法使用任何html。我认为这一定是因为其内部标记。我想知道是否有可能使其包含html,因为我需要在其中使用换行符?

<figure> <a href="https://somepage.com/somepage/image.jpeg" data-rel="lightbox-gallery-1234" data-magnific_type="image" data-rl_title="Some Title" data-rl_caption="Caption for the picture and some more text" title="Some title"> <img src="https://somepage.com/somepage/image.jpeg" data-link="https://somepage.com/somepage/image.jpeg"> </a></figure>

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

找到了我问题的答案。添加 空白:预包装; CSS和&#13;作为换行符