Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file_ = open("smith", "rb")
- contents = file_.read()
- data_url = base64.b64encode(contents).decode("utf-8")
- file_.close()
- st.markdown("This <b>HTML tag</b> is not escaped!", unsafe_allow_html=True)
- st.markdown(
- f'<img src="data:image/gif;base64,{data_url}" alt="flag gif" style="float:right;width:200px;height:200px;margin-right:-50px;margin-top:-100px">',
- unsafe_allow_html=True,
- )
Add Comment
Please, Sign In to add comment