845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
|
){
if( text==0 ){
/* no-op */
}else{
char cPrefix = '!';
blob_append_literal(ob, "<span data-");
switch (type) {
case MKDT_ATREF:
cPrefix = '@'; blob_append_literal(ob, "atref"); break;
case MKDT_HASHTAG:
cPrefix = '#'; blob_append_literal(ob, "hashtag"); break;
case MKDT_NUMTAG:
cPrefix = '#'; blob_append_literal(ob, "numtag"); break;
}
blob_append_literal(ob, "=\"");
html_quote(ob, blob_buffer(text), blob_size(text));
|
<
<
|
845
846
847
848
849
850
851
852
853
854
855
856
857
858
|
){
if( text==0 ){
/* no-op */
}else{
char cPrefix = '!';
blob_append_literal(ob, "<span data-");
switch (type) {
case MKDT_HASHTAG:
cPrefix = '#'; blob_append_literal(ob, "hashtag"); break;
case MKDT_NUMTAG:
cPrefix = '#'; blob_append_literal(ob, "numtag"); break;
}
blob_append_literal(ob, "=\"");
html_quote(ob, blob_buffer(text), blob_size(text));
|