simplify bug summary fragment generation
fix quoteattr quote problem