ruby on rails - Twittertext bug for auto_link_usernames_or_lists when deal with html -


the auto_link_usernames_or_lists can't deal html well. when trying generate link using html tag. when have mention string inside single html element not generate link if have more 2 tag generate link correctly

auto_link_usernames_or_lists('<p>@blankyao</p>')                o/p - no link generated auto_link_usernames_or_lists('<span><p>@blankyao</p><span>')    o/p - link generated 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -