Modify log summary
I saw my log abstract part, I felt it, I put forward a suggestion and discovered a bug. It is recommended that the font is magnified half. I also agree that I also agree, so I decided to change it. This change will not be very large, with a two days, the problem is on that huge bug. Since it is a summary, of course, you can't display the article through the article, so you need to intercept some. However, there is a problem when intercepted, it is clear that it is necessary to intercept 30 characters. As a result, he only intercepts two words. what happened?
I showed it its original text, which clearly, because the text is stored in the database, that is, said that the hypertext tag is also saved inside, such as
some type of. So you must find a way to delete these things.
I think about a algorithm, just find a loop look, first find the left brackets, then find the right parentheses, then intercept the text on both sides of the sputum (delete angle brackets and tags), then calculate How many words do I delete, how many words are added.
Simple, but, there are many problems in the document, and I have found a problem. Once the dead cycle is formed, the server will occupy all CPU resources by WP3, so, develop this kind of Dongdong must be careful, more test.
This is not this for two days.