mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-27 07:46:53 +00:00
config_tools: replace illegal character with escaped character
For illegal characters, replace original characters with escaped characters in board.xml. Tracked-On: #6113 Signed-off-by: Kunhui Li <kunhuix.li@intel.com>
This commit is contained in:
parent
ec60d919cd
commit
976d4790a2
@ -125,6 +125,8 @@ def dump_execute(cmd, desc, config):
|
||||
res = cmd_execute(cmd)
|
||||
while True:
|
||||
line = res.stdout.readline().decode('ascii')
|
||||
line = line.replace("&", "&").replace('"', """) \
|
||||
.replace("'", "'").replace("<", "<").replace(">", ">")
|
||||
|
||||
if not line:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user