Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
better-wp-security
/
core
/
packages
/
components
/
src
/
markup
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { Markup } from 'interweave'; import { Link } from 'react-router-dom'; export default function( { transform, ...rest } ) { return ( <Markup { ...rest } transform={ ( node, children ) => { if ( transform ) { const transformed = transform( node, children ); if ( transformed !== undefined ) { return transformed; } } if ( node.tagName.toLowerCase() === 'a' && node.dataset.itsecPath && ! rest.noHtml ) { return ( <Link to={ node.dataset.itsecPath }>{ children }</Link> ); } } } /> ); }