in js/src/linkToHashtag.js [10:25]
export default function(entity, text, options) {
const hash = text.substring(entity.indices[0], entity.indices[0] + 1);
const hashtag = htmlEscape(entity.hashtag);
const attrs = clone(options.htmlAttrs || {});
attrs.href = options.hashtagUrlBase + hashtag;
attrs.title = `#${hashtag}`;
attrs['class'] = options.hashtagClass;
if (hashtag.charAt(0).match(rtlChars)) {
attrs['class'] += ' rtl';
}
if (options.targetBlank) {
attrs.target = '_blank';
}
return linkToTextWithSymbol(entity, hash, hashtag, attrs, options);
}