Open iqqmuT opened 4 years ago
Uhh, seems a bit fragile. How about this instead? https://www.npmjs.com/package/posthtml-external-link-target-blank
Oh, and this code applies also to Action.description
, Indicator.description
, ActionUpdate.content
and ActionTask.comment
.
Thanks for direction! Created a new component HtmlContent
to wrap all HTML renderings. That component should be the only place where prop dangerouslySetInnerHTML
is used.
Kinda a rough way to modify existing links to open in new window. This patch assumes that links do not already contain
target
attribute.