I
I
Imbolc2011-12-18 15:04:20
Django
Imbolc, 2011-12-18 15:04:20

Django: slashing meta tags?

How to correctly slash possible quotes in meta tags, is the standard addslashes enough?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
phasma, 2011-12-18
@phasma

this is called shielding. Why do you need it?

X
xSkyFoXx, 2011-12-18
@xSkyFoXx

Quite enough standard:
a = 'I\'m string'
If the variable is transferred to the body of the template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question