Actually, though this is the enhancement of the yii-blogdemo-enhanced, it can be applied to the original blog demo because this does not related to other enhancements much.
Actually, though this is the enhancement of the yii-blogdemo-enhanced, it can be applied to the original blog demo because this does not related to other enhancements much.
I have confirmed this. BTW, as I have raised the discussion on a bug as follows, please be careful. I surely am going to fix it.
I have added the enhancement of high-lighting the searched words. It is better seeing than reading this explanation. Try out this enhanced blog demo, or even simple blog with search.
I actually had a trouble with markdown languages as you mentioned. At first I tried to search the words in Post.content, but changed my mind to search in Post.contentDisplay with this reason. And I added the functionality to ignore the contents in the tags starting with '<' and ending with '>'. This is the current algorithm. Do you think you may have a better idea?