Data file field limits


Hi Hugoers,

I am trying to use a data file field to insert an image as a data-URI. When the data file is processed into the output the field has

<img src="#ZgotmplZ" >

instead of the data-URI that is specified in the data file. Is there a limit on the size of a field in a data file?



That is a Go error message and it indicates that unsafe content reached the URL context at runtime.

Try using safeHTML in your template function and see if the error persists.

For more about safeHTML look here:


Thanks @Alexandros, that did the trick.

I should have done a search in the Hudo docs for that Go error messageā€¦