JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="term">
<button type="button" id="go">Go</button>
<div id="rez"></div>

JavaScript

$('#go').click(function(){
    let term = $('#term').val().split(' '),
			  text = 'Планшет Apple iPad купить недорого',
				reg	 = term.reduce((acc, item) => acc.replace(new RegExp(item, "gi"), "<strong>$&</strong>"), text)
        
    $('#rez').html(reg);
});