source/io/output.py
def encode_text(text):
    """Encode data to help prevent XSS attacks from text in article"""
    #Most efficient way is to chain these together ( https://stackoverflow.com/questions/3411771/best-way-to-replace-multiple-characters-in-a-string )
    text = text.replace('&','&amp').replace('<','&lt').replace('>','&gt').replace('"','&quot').replace("'",'&#x27')
    return text
Encode data to help prevent XSS attacks from text in article
Encode data to help prevent XSS attacks from text in article
Encode data to help prevent XSS attacks from text in article
def encode_text(text):
    text = text.replace('&','&amp').replace('<','&lt').replace('>','&gt').replace('"','&quot').replace("'",'&#x27')
    return text
def encode_text ( text ) : text = text . replace ( '&' , '&amp' ) . replace ( '<' , '&lt' ) . replace ( '>' , '&gt' ) . replace ( '"' , '&quot' ) . replace ( "'" , '&#x27' ) return text
Encode data to help prevent XSS attacks from text in article
Encode data to help prevent XSS attacks from text in article
"""Encode data to help prevent XSS attacks from text in article""" #Most efficient way is to chain these together ( https://stackoverflow.com/questions/3411771/best-way-to-replace-multiple-characters-in-a-string )
text