mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Remove html from loaded markdown
							parent
							
								
									a7e0985ac8
								
							
						
					
					
						commit
						3c270c39a5
					
				|  | @ -9,6 +9,7 @@ __status__ = "Production" | |||
| import os | ||||
| from shutil import copyfile | ||||
| from utils import getConfigParam | ||||
| from utils import removeHtml | ||||
| from webapp_utils import htmlHeaderWithExternalStyle | ||||
| from webapp_utils import htmlFooter | ||||
| from webapp_utils import markdownToHtml | ||||
|  | @ -60,7 +61,7 @@ def htmlWelcomeScreen(baseDir: str, nickname: str, | |||
|         copyfile(defaultFilename, welcomeFilename) | ||||
|     if os.path.isfile(welcomeFilename): | ||||
|         with open(welcomeFilename, 'r') as welcomeFile: | ||||
|             welcomeText = markdownToHtml(welcomeFile.read()) | ||||
|             welcomeText = markdownToHtml(removeHtml(welcomeFile.read())) | ||||
| 
 | ||||
|     welcomeForm = '' | ||||
|     cssFilename = baseDir + '/epicyon-welcome.css' | ||||
|  |  | |||
|  | @ -8,6 +8,7 @@ __status__ = "Production" | |||
| 
 | ||||
| import os | ||||
| from shutil import copyfile | ||||
| from utils import removeHtml | ||||
| from utils import getConfigParam | ||||
| from webapp_utils import htmlHeaderWithExternalStyle | ||||
| from webapp_utils import htmlFooter | ||||
|  | @ -35,7 +36,7 @@ def htmlWelcomeFinal(baseDir: str, nickname: str, domain: str, | |||
|         copyfile(defaultFilename, finalFilename) | ||||
|     if os.path.isfile(finalFilename): | ||||
|         with open(finalFilename, 'r') as finalFile: | ||||
|             finalText = markdownToHtml(finalFile.read()) | ||||
|             finalText = markdownToHtml(removeHtml(finalFile.read())) | ||||
| 
 | ||||
|     finalForm = '' | ||||
|     cssFilename = baseDir + '/epicyon-welcome.css' | ||||
|  |  | |||
|  | @ -8,6 +8,7 @@ __status__ = "Production" | |||
| 
 | ||||
| import os | ||||
| from shutil import copyfile | ||||
| from utils import removeHtml | ||||
| from utils import loadJson | ||||
| from utils import getConfigParam | ||||
| from utils import getImageExtensions | ||||
|  | @ -38,7 +39,7 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str, | |||
|         copyfile(defaultFilename, profileFilename) | ||||
|     if os.path.isfile(profileFilename): | ||||
|         with open(profileFilename, 'r') as profileFile: | ||||
|             profileText = markdownToHtml(profileFile.read()) | ||||
|             profileText = markdownToHtml(removeHtml(profileFile.read())) | ||||
| 
 | ||||
|     profileForm = '' | ||||
|     cssFilename = baseDir + '/epicyon-welcome.css' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue