1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export const AUTOFIX_HTML_TEMPLATE_TEXT = 'this is replace content'; 17export const AutofixHtmlTemplate = `<!DOCTYPE html> 18<html> 19<head> 20 <meta charset="UTF-8"> 21 <title>AutoFixes</title> 22 <style> 23 .safe-text-container { 24 width: 80%; 25 margin: 20px auto; 26 padding: 15px; 27 border: 1px solid #ddd; 28 border-radius: 4px; 29 background-color: #f8f9fa; 30 white-space: pre-wrap; 31 word-break: break-word; 32 font-family: monospace; 33 line-height: 1.5; 34 } 35 </style> 36</head> 37<body> 38<div class="safe-text-container" id="content"></div> 39 40<script> 41 const rawContent = 42\`${AUTOFIX_HTML_TEMPLATE_TEXT}\`; // replace it. 43 const container = document.getElementById('content'); 44 container.textContent = rawContent; 45</script> 46</body> 47</html>`; 48