Example
If the user searches “car” I would like the output to look like
Find your favorite car today, car sale for next 2 days.
Notice that car is bolded. Google does it:

What’s the best way to go about doing this in Python? The bolding is in HTML.
It’s a little bit tricky to figure out exactly what should count as an instance of “car”, though; this would make “cartoon” and so on. You could try
\b(cars?)\bfor this specific phrase; in general, you might want to use a stemmer.