Skip to content

[html] 第408天 怎样在<pre>标签内不转义<和>符号(原样输出html标签)? #2435

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第408天 怎样在<pre>标签内不转义<和>符号(原样输出html标签)?

#1157

3+1官网

我也要出题

Activity

MaoFan3

MaoFan3 commented on May 28, 2020

@MaoFan3

将HTML代码嵌入到<script type='text/html' style='display:block'>中

	<script type="text/html" style="display: block;">
		
哈哈哈

dfdfd

</script>
forever-z-133

forever-z-133 commented on May 28, 2020

@forever-z-133

上面的还得加上 white-space: pre; 之类的才能还原换行和缩进。
真是个有趣的办法,手里的 &lt;&#60; 突然就不香了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@forever-z-133@MaoFan3

        Issue actions

          [html] 第408天 怎样在`<pre>`标签内不转义<和>符号(原样输出html标签)? · Issue #2435 · haizlin/fe-interview