Fixed the bug of replacing img src with href text (#1193)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
This commit is contained in:
parent
5e7dc42df8
commit
ed1908efa1
@ -76,7 +76,7 @@ $(function () {
|
||||
// Add text to empty links
|
||||
$("p > a").each(function () {
|
||||
var link = $(this).attr('href')
|
||||
if ($(this).text() === "") {
|
||||
if ($(this).text() === "" && $(this).children().attr("src") === "") {
|
||||
$(this).html(link)
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user