I did it using MS Word's "Find and Replace All" feature.
First replace the spaces with " ",
then replace the left brackets with "<",
the right brackets with ">",
and finally replace the paragraph breaks with "<br>".
I came up with this trick a while back, and it seems to work OK. Maybe I should write a macro to do it automatically.