将粘贴从网页复制到记事本 [英] Copy paste from webpage to notepad

查看:412
本文介绍了将粘贴从网页复制到记事本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我认为这是一个非常基本的问题,但我坚持下去.当我们从网页上复制文本并将其粘贴到记事本中时,不会粘贴HTML标记,只有纯文本会到达那里.记事本是如何处理它并删除标记的,但是如果将相同的东西粘贴到任何富文本编辑器(如Office Word)中,我们可以看到标记到达了那里(所有格式链接等均完好无损).

如果有人对它有所帮助,将为您提供很大的帮助.

Hi All,
I think it''s a very basic question, but I''m stuck with it. When we copy text from a webpage and paste it in notepad, no HTML Markup gets pasted, only the plain text gets there. How, notepad handles it and removes the markup, but if we paste the same thing in any rich text editor like Office Word, we can see that the markup gets there (all the formatting links etc are intact).

It will be your great help if someone puts some light on it

推荐答案

只需右键单击您的网页,然后查看源代码,最后将内容复制并粘贴到记事本中.
Simply right click your web page, then view source finally copy the content and paste it into notepad.


Guirec Le Bars似乎是正确的,它解释了单词将如何解释从网页复制的数据和记事本之间的区别..

您无法通过直接复制而无法进入记事本,因为记事本无法将RTF文本呈现为纯文本文件...

而且,即使您从视图源复制粘贴,然后将内容复制到记事本中,它也只会显示标签和文本而无法渲染,或者说无法对样式进行格式化或说无法提供格式设置"
由于原因之一,它只是纯文本,因此您无法在记事本中获得丰富的文本体验..
它从html复制文本.在记事本中,属性或html标记被忽略,而word文件可以渲染它们,而只是将它们从html页面复制到记事本.txt文件将忽略所有标记,而word则显示html标记中的几乎"准确的样式..几乎因为几乎没有它不会理解的字符,可能会带来一些不一致的地方.
Guirec Le Bars seems to be correct in explaining the difference between how word will interpret the copied data from the web page and notepad wont..

You cannot get on notepad by copying directly as notepad cant render the rich text as its just plain text file...

And even if you copy paste from the view source and then copy the content in notepad it would just show the tags and text and cant render or to say "Cant Style them Or Say cannot provide formatting"
For reason one its just plain text you cannot get Rich text experience in notepad ..
It copies text from html . In notepad the attributes or html tags are ignored while word file can render them just copying from html page to Notepad .txt file will ignore all the tags while word shows the "almost" accurate styling as in html tags .. Almost Because there are few characters it wont understand and may give some inconsistency.


这篇关于将粘贴从网页复制到记事本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆