-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove_html.js
More file actions
executable file
·20 lines (16 loc) · 5.04 KB
/
remove_html.js
File metadata and controls
executable file
·20 lines (16 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
Function remHTM(s)
Parameters accepts and returns a string
Purpose: uses a regular expression to search a given string for HTML tags and replaces the identified HTML tags with empty '' or null strings.
The regular expression /(<([^>]+)>)/ig uses the first capturing group to search for a < symbol (u003C), then the second capturing group searches for a set containing anything that is not > (u003E) indicated by the [^] (negated set) and + (quantifier: match 1 or more), then conlcudes the search with a >. The modifiers i and g perform case-insensitive and global matching, respectively.
*/
function remHTML(s) {
if ((s===null) || (s===''))
return false;
else
s = s.toString();
return s.replace( /(<([^>]+)>)/ig, '');
}
//use Notepad++ to search and remove double-quotes and bullet points from the string before passing it through the parser.
let text = "<span style=line-height:normal><span style=color:#333333>U.S. Steel has an immediate opening for an IT Application Analyst on the Plant Systems Quality team. </span>The Plant Systems Quality team provides IT solutions which support U. S. Steel North American operations within the following spaces: Plant Order Entry, Diversions / Retreats, Test Tracking and Test Reporting.</span><br><br><span style=background:white><span style=line-height:normal><span style=color:#333333>The person filling this position will be responsible for working with our Enterprise Architects to incorporate new technologies and lead the design/development of new applications for our Quality team. Your daily focus and priorities will be aligned to help USS achieve its vision and remain a leader in the Industry. The level of this position will be dependent on candidate experience.<br><br>This opportunity has the ability to be remote. Preferred locations are: </span></span></span><ul><li style=list-style-type:none><ul style=list-style-type:circle><li>Gary Works (Gary, IN)</li><li>Pittsburgh (Pittsburgh, PA)</li><li>Great Lakes Works (Great Lakes, MI)</li><li>Mon Valley Works (Clairton, PA)</li></ul></li></ul><br><span style=background:white><span style=line-height:normal><span style=color:#333333>KEY RESPONSIBILITIES:<br> Communicate with Business Units to understand their needs</span></span></span><br><span style=background:white><span style=line-height:normal><span style=color:#333333> Design/Develop new corporate systems to streamline functionality and retire legacy applications</span></span></span><br><span style=background:white><span style=line-height:normal><span style=color:#333333> Maintain the legacy windows applications until they are replaced</span></span></span><br><span style=background:white><span style=line-height:normal><span style=color:#333333> Provide infrequent off-hour support by responding and resolving priority trouble tickets</span></span></span><br><span style=background:white><span style=line-height:normal><span style=color:#333333> Thoroughly test and document code changes per our defined quality process</span></span></span><br><span style=background:white><span style=line-height:107%><span style=line-height:107%><span style=color:#333333> Actively participate in Knowledge Transfer to learn our business<br> Work across teams to create Agile, intuitive, easy-to-use software based on our standards, existing technology and best practices.<br> Use Azure DevOps to document tasks, perform code reviews and code merges.<br> Complete all Cyber security reviews and requirements to ensure secure coding.</span></span></span></span><br><br><br><br><span style=background:white><span style=line-height:107%><span style=line-height:107%><span style=color:#333333>MINIMUM REQUIREMENTS:<br> Degree in Information Technology, Engineering, Computer Science or relevant discipline.<br> 5+ years of experience in ASP.NET Web Application Development.</span></span></span></span><br><span style=background:white><span style=line-height:107%><span style=line-height:107%><span style=color:#333333> 5+ years of experience in Javascript Frameworks (Angular, Knockout, etc.)</span></span></span></span><br><span style=background:white><span style=line-height:107%><span style=line-height:107%><span style=color:#333333> 5+ years of experience designing corporate level customer facing business systems.</span></span></span></span><br><span style=background:white><span style=line-height:107%><span style=line-height:107%><span style=color:#333333> Thorough understanding and experience in relational database design and methodologies.</span></span></span></span><br><span style=line-height:107%><span calibri=><span style=color:#333333> Excellent written and verbal communication skills.<br> Ability to focus on multiple projects and meet short deadlines.<br> Strong decision-making skills.</span></span></span><br><br><span style=line-height:107%><span style=line-height:107%>WORK ENVIRONMENT/ PHYSICAL REQUIREMENTS:</span></span><br><br><span style=line-height:107%><span style=line-height:107%>Occasional work visits into the steel mill environment.</span></span><br>";//html is ignored
document.write(remHTML(text));;