def _replSGMLRefs(match):
 ref = match.group(1)
 return sgmlentityget(ref, ref)

def _replSGMLRefs ( match ) : ref = match . group ( 1 ) return sgmlentityget ( ref , ref )
replace the matched sgml entity .