fix(templates): Mark pre-escaped variables as 'safe'
This commit is contained in:
		
							parent
							
								
									fc0b9d7fa5
								
							
						
					
					
						commit
						72f6fa65fd
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -34,7 +34,7 @@ | |||
|             {% for result in results -%} | ||||
|             <a href="/thread/{{ result.thread_id }}#post-{{ result.post_id }}" class="list-group-item list-group-item-action flex-column align-items-start"> | ||||
|               <div class="d-flex w-100 justify-content-between"> | ||||
|                 <p class="mb-1">{{ result.headline }}</p> | ||||
|                 <p class="mb-1">{{ result.headline | safe }}</p> | ||||
|                 <small class="float-right text-muted"><i>(Posted in '{{ result.title }}' by {{ result.author }})</i></small> | ||||
|               </div> | ||||
|             </a> | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ | |||
|             <strong>{{ post.author_name }}</strong> | ||||
|           </div> | ||||
| 
 | ||||
|           <div class="align-self-stretch">{{ post.body }}</div> | ||||
|           <div class="align-self-stretch">{{ post.body | safe }}</div> | ||||
| 
 | ||||
|           <div class="d-inline-flex flex-column align-items-end ml-auto"> | ||||
|             <a href="/thread/{{ id }}#post-{{ post.id }}" class="ml-auto"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue