]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Fix ticket #3057: apply HTML escaping on special characters in Twitter import
authorBrion Vibber <brion@pobox.com>
Tue, 22 Feb 2011 00:18:45 +0000 (16:18 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 22 Feb 2011 00:36:39 +0000 (16:36 -0800)
commit8eca1b8daccf722b1ad06bdc128f5742bd6b0a80
treec56e9225e5c8abba914a50af8899a5689d96356a
parent2a42dac72aa3000aa4b442ee722a13e12dda3319
Fix ticket #3057: apply HTML escaping on special characters in Twitter import

Changes the replacement of Twitter "entities" from in-place reverse ordering ('to preserve indices') to a forward-facing append-in-chunks that pulls in both the text and link portions, and escapes them all.
This unfortunately means first *de*-escaping the &lt; and &gt; that Twitter helpfully adds for us.... and any literal &blah;s that get written. This seems to match Twitter's web UI, however horrid it is.
plugins/TwitterBridge/twitterimport.php