Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- It would be great to have something which converts anything BUT html tags, for instance:
- <p>Inició sus estudios en la escuela <a href="www.whatever.org">school name</a> y se recibió <i>magna cum laude</i> en etc. etc..</p>
- would NOT become:
- <p>Inició sus estudios en la escuela <a href="www.whatever.org">school name</a> y se recibió <i>magna cum laude</i> en etc. etc..</p>
- BUT INSTEAD:
- <p>Inició sus estudios en la escuela <a href="www.whatever.org">school name</a> y se recibió <i>magna cum laude</i> en etc. etc..</p>
- to which result anyway one can get by putting the unwanted result into any text editor and replacing all occurrences of
- < with <
- > with >
- " with "
- I came to need something like this because I saved one page with google chrome (*) without noticing that it had replaced &entities of the page code by single characters which were NOT in the original page code, ó with ó, á with á, etc., and I started comfortably editing the text in between html tags (the original text I was translating was carrying links that I wanted to respect in the translation).
- When I realized, I couldn't figure out a quick way to resolve the conversion inside Notepad++ (at least not with the plugins I took the time to investigate), I found this page (thanks) and I ended up using http://www.elliotswan.com/postable/ and then notepad to convert back to single character any occurrence of the above mentioned &entities, to recover <>", that is to recover html tags and quotes around linked URLs.
- (*) Saving with ctrl-S, instead of grabbing the original archive by putting it as the target of a link and do "save link target as ...", can also cause a change in the path of related files, images or css style sheets or whatever.
- I hadn't considered this as an issue at first, because I just needed to translate two text parts and send the html code of each part ready for the webmaster to replace each part into the original page. (Anyway I ended up grabbing the untouched original page and offering him both options, parts to paste or already patched page.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement