Reputation: 681
I tried to display a string on a webpage with this Flask code:
@app.route('/')
def index():
return 'Variable can be of different types: string and <int>'
and got
Variable can be of different types: string and
without "<>". A way to fix it is to add a space between "<" and "int" like:
Variable can be of different types: string and < int >.
Also I noticed that the space for the closing > as in "< int>" doesn't matter.
Other characters such as [int] and {int} have no such a problem. Why? tag related?
Upvotes: 1
Views: 368