Skip to content

fix(Story Element): Replaced all Anchor tags to open in new tab#65

Merged
nandakumargm merged 3 commits intomasterfrom
story-element-fix
Jan 4, 2019
Merged

fix(Story Element): Replaced all Anchor tags to open in new tab#65
nandakumargm merged 3 commits intomasterfrom
story-element-fix

Conversation

@nandakumargm
Copy link
Contributor

No description provided.

@nandakumargm nandakumargm changed the title Fix(Story Element): Replaced all Anchor tags to open in new tab fix(Story Element): Replaced all Anchor tags to open in new tab Jan 4, 2019
function StoryElementText({element = {},externalLink}) {
let text = element.text || '';
if(externalLink){
text = element.text.replace(/<a/g,"<a target='_blank'");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"<a target='_blank'", should be '<a target="_blank"'

@nandakumargm nandakumargm merged commit dbe7cb1 into master Jan 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the story-element-fix branch January 4, 2019 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants