Closed beccadax closed 11 years ago
This same issue applies to description (which now supports custom links as well). Of course, editing the description repeatedly is common, and requires stringifying (in Noodle's case to Markdown) and parsing back and forth.
Until this is in place, we will need to all write our own regexes or equivalent to strip the bracket parts ourselves.
I can make a separate issue for description if desired.
I agree this is a bit of an issue and also needs to be handled better in the documentation as we are okay with you stripping out this additional text if there are other anti-phishing techniques in place in your app (say showing the url in a "footnote" or on rollover).
We just rolled out the amended_len
property for links that should take care of this use case http://developers.app.net/docs/meta/entities/#links
When you create a post with embedded link attributes, App.net inserts a domain name in square brackets into the text. There's no way to tell this artificially-injected text from the text the user provided; without that knowledge, clients can't reliably style this text differently or generate a new post based on the text of an existing one (for example, quoting a post).
It'd be helpful if post objects included enough information to reconstruct the unaltered text and entities. I can think of a few approaches: