JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Это[br]текст</h1>

JavaScript

jQuery('h1').each(function() {
	var text = jQuery(this).text();
	text.replace(/\[br]/g, '</br>');
	jQuery(this).text(text);
});