Skip to content

Commit be51535

Browse files
Merge pull request #63 from contentstack/hotfix/anchor_tag
fix: fixed anchor tag early closing issue
2 parents 28becbb + 0e71bf8 commit be51535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/contentstack/utils/render/DefaultOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public String renderNode(String nodeType, JSONObject nodeObject, NodeCallback ca
111111
if (!assetLink.isEmpty()) {
112112
JSONObject attrs = nodeObject.optJSONObject("attrs");
113113
if (attrs.has("link")) {
114-
return "<a href=\"" + escapeInjectHtml(nodeObject, "link") + "\" />" + "<img" + strAttrs + " src=\"" + escapeInjectHtml(nodeObject, "asset-link") + "\" />" + children + "</a>";
114+
return "<a href=\"" + escapeInjectHtml(nodeObject, "link") + "\" >" + "<img" + strAttrs + " src=\"" + escapeInjectHtml(nodeObject, "asset-link") + "\" />" + children + "</a>";
115115
}
116116
return "<img" + strAttrs + " src=\"" + escapeInjectHtml(nodeObject, "asset-link") + "\" />" + children;
117117
}

0 commit comments

Comments
 (0)