(content: str)
| 42 | |
| 43 | |
| 44 | def content_replace(content: str): |
| 45 | maps = { |
| 46 | "<": "<", |
| 47 | ">": ">", |
| 48 | "&": "&", |
| 49 | " ": "\n", |
| 50 | " ": "\r", |
| 51 | "	": "\t", |
| 52 | " ": " ", |
| 53 | } |
| 54 | for key in maps.keys(): |
| 55 | content = content.replace(key, maps[key]) |
| 56 | return content |
| 57 | |
| 58 | def generate_prompt_html(params: Dict[str, Any], template: str): |
| 59 | template = str2html(template) |