invalid HTML around class attribute in links
-
Hi, the function cff_autolink adds additional tags to links, but its default does not consider that spaces are required between attributes. So you get invalid HTML such as:
<span class="cff-text" rel=""><a target='_blank' style='color:#' href="http://www.mysite.com/"class="cff-break-word">You may wish to look at this close as this could be either an issue with the above function, or that the function cff_autolink_do should be adding a space itself, Looking at the code briefly I think the former is more suitable, but this will affect all calls to cff_autolink where a tagfill is specified.
Perhaps add some small code to add a leading space to the variable if none exists?
The following change though on line 1784 of custom-facebook-feed.php solves my immediate issue:
function cff_autolink($text, $link_color='', $span_tag = false, $limit=100, $tagfill=' class="cff-break-word"', $auto_title = true){BTW this is present in version 2.2.1
The topic ‘invalid HTML around class attribute in links’ is closed to new replies.