38 static void put_htmlescaped(CxBuffer *dest, char c) { |
38 static void put_htmlescaped(CxBuffer *dest, char c) { |
39 if (c == '>') { |
39 if (c == '>') { |
40 cxBufferPutString(dest, ">"); |
40 cxBufferPutString(dest, ">"); |
41 } else if (c == '<') { |
41 } else if (c == '<') { |
42 cxBufferPutString(dest, "<"); |
42 cxBufferPutString(dest, "<"); |
|
43 } else if (c == '&') { |
|
44 cxBufferPutString(dest, "&"); |
43 } else if (c) { |
45 } else if (c) { |
44 cxBufferPut(dest, c); |
46 cxBufferPut(dest, c); |
45 } |
47 } |
46 } |
48 } |
47 |
49 |