ucd-cws / arcpy_metadata

Python metadata editing classes for ArcGIS feature classes
93 stars 34 forks source link

How to add text with hyperlink #53

Open sanrajbhar opened 5 years ago

sanrajbhar commented 5 years ago

I want to put hyperlink on some text in abstract section. I tried choosing html tags for hyperlink but didnt work. pls show pointers how can I achieve

example: Abstract: This Layer has bee downloaded from here

thomas-maschler commented 5 years ago

Have you tried escaping your HTML code?

import html
s = html.escape( """& < " ' >""" )

Instead of saving the raw HTML to your abstract, use the escaped string.