gpt4 book ai didi

html - 你有什么功能或工具可以将简单的 html 转换为我喜欢的特殊代码吗?

转载 作者:行者123 更新时间:2023-12-04 10:42:25 24 4
gpt4 key购买 nike

我想将一个简单的代码转换为我喜欢的特殊代码。看到这个简单的代码:

<html>
<body>
<a href="stack.com"> The content of the document </a>
</body>
</html>

转换成 :
<html>\n\t<body>\n\t\t <a href=\"stack.com\"> The content of the document </a> \n\t</body>\n</html>

(将换行符转换为\n ;将制表符转换为\t ;将 "转换为\")
最后把它们排成一行。只有一行。
你能给我推荐一个很好的功能或工具来完成这项工作吗?

最佳答案

首先想到的是 Notepad++ 为了我。

菜单

  1. You can start recording your actions
  2. Replace all linebreaks with \n
  3. Replace all tabs with \t
  4. Replace all " with \"
  5. And save your macro to use whenever you want to use again

关于html - 你有什么功能或工具可以将简单的 html 转换为我喜欢的特殊代码吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59872442/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com