Answer the question
In order to leave comments, you need to log in
How to remove porridge from tags when copying from Google Chrome?
If you copy part of the page from Chrome and paste this HTML somewhere else, you get something like this:
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: 12px; "><div id="wrapper" style="width: 1199px; min-width: 725px; clear: both; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; "><div id="inner" style="margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; max-width: 1200px; ">
How to make it copy normally (WITH TAGS, but without the webkit and Apple garbage that the real code does NOT), like in Firefox , For example?
Answer the question
In order to leave comments, you need to log in
Are you copying from the source browser (ctrl+u)? Where are you copying? Now I checked from chrome to notepad - no problems.
Clickable.
For Chrome, there is a Copy Without Formatting plugin that allows you to copy text without formatting.
In addition, a universal way that works anytime and anywhere is to paste text into a simple text editor like notepad or Notepad++.
If in semajik - then Paste as Text
If there is no current - then I copy the browser-> notepad-> where necessary (for example, OpenOffice) through the notepad.
Apparently, we are talking about copying in WYSIWYG.
Faced similar. I decided by processing text on the server using jevix
But in this case, the scheme will work:
- leave everything that is allowed (a, b, span etc)
- delete everything that is not allowed
- delete attributes from tags
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question